Hello Canvas
✓ Published2🌍 Public
This example shows an HTML5 canvas that fills its entire 960-by-500 pixel area with a solid red rectangle. The code acquires a 2D drawing context using the canvas `getContext` API, sets the `fillStyle` to red, and calls `fillRect` to cover the full canvas bounds. It serves as a minimal starter template for rendering graphics, with CSS that removes page margins and hides overflow for an immersive full-window display.
AI-generated descriptionHTML5 Canvas starter code.
From "Mathematical Patterns" tutorial given at MIT on July 28, 2013.
MIT Licensed