Canvas
A pixel drawing surface controlled by JavaScript — charts, games, oscilloscope-style plots.
Intermediate
const ctx = canvas.getContext("2d"); ctx.fillRect(10, 10, 50, 30); Provide fallback text for accessibility.
Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.
Discussion (0)
Sign in or join free to ask questions and discuss this topic.