Skip to main content
100%

Hello Canvas

✓ Published2🌍 Public
CCurran Kelleher
Last edited Sep 19, 2019
Created on Sep 19, 2019
Forked from HTML Starter

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 description

HTML5 Canvas starter code.

From "Mathematical Patterns" tutorial given at MIT on July 28, 2013.

MIT Licensed

Similar vizzes