🌍 Public
Viewing a saved revision (read-only)
ace7643110344ab892cf754fd37c89b3
Javascript
This example demonstrates a basic canvas-based drawing application. Users can sketch freehand on the canvas by dragging the mouse, with sliders and color pickers to adjust pen width and color. The code uses JavaScript with the HTML5 Canvas API, including methods like `ctx.lineTo`, `ctx.stroke`, and `ctx.clearRect` to manage drawing and erasing. It is a direct illustration of interactive vector graphics in the browser, independent of D3.js.
AI-generated descriptionAn example showing the capabilities of VizHub.