Create and draw multiple rectangular objects
Control the position, size, rotation, and color of the created rectangular objects
Define a coordinate system to draw from
Define a target subarea on the canvas to draw to
Work with abstract representations of Renderable objects, transformation operators, and cameras
3. Drawing Objects in the World
Get Build Your Own 2D Game Engine and Create Great Web Games: Using HTML5, JavaScript, and WebGL2 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.