Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Javascript

Public visualization

Viewing a saved revision (read-only)

ace7643110344ab892cf754fd37c89b3

Javascript

0 stars0🌍 Public
SShane Carey
Last edited Sep 26, 2019
Created on Sep 26, 2019
Forked from Hello VizHub

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 description

An example showing the capabilities of VizHub.