A rich drawing experience on a dark board background. As you draw with your cursor or finger, chalk dust specks scatter along the stroke, each with a unique seed for deterministic grain. The dust gradually fades over time, like real chalk wearing away. Includes an erase button to clear the board. Built with pointer events for smooth, pressure-sensitive input.
chalk-dust-preview
Loading preview...
Why it helps: Chalk dust captures the tactile, imperfect feel of real chalk. The gradual fade adds a sense of time passing - your marks don't last forever, which makes drawing feel more human and less digital.
Also good to know:
// Loading source...
import { ChalkDust } from "@/components/live/ChalkDust";
<ChalkDust
boardColor="#2c3b32"
color="#f4f1ea"
duration={5200}
/>Chalk color as a hex string.
Background color of the chalkboard.
How long dust specks last in milliseconds before fading.
Base radius of the chalk stroke.
Multiplier for dust speck density.
Show the hint pill at the bottom.
Additional CSS classes.
import { ChalkDust } from "@/components/live/ChalkDust";
<ChalkDust
boardColor="#2c3b32"
color="#f4f1ea"
duration={5200}
/>