工具 指南
在线白板 免费 无需注册

点击任意习惯上的"显示日历",以热图形式查看过去30天的进度。

生产力

正在加载工具…

关于此工具

支持自由绘画的画布,具有画笔、图形、撤销/重做和PNG导出功能。

使用方法

  1. 1 由HTML5 Canvas API驱动的全功能在线白板。使用画笔工具自由绘画,添加图形、文字或擦除错误。支持最多20步撤销/重做,并可将作品下载为PNG图片。
  2. 2 第1步:从工具栏中选择绘画工具——画笔、橡皮擦、直线、矩形、圆形或文字。
  3. 3 第2步:从12个预设色样中选择颜色,或点击颜色选取器选择任意自定义颜色。
  4. 4 第3步:使用滑块(1–50 px)调整画笔/线条粗细。

What an HTML5 canvas whiteboard actually is

This whiteboard is a single <canvas> element — a fixed grid of pixels that your browser lets JavaScript paint onto directly. When you drag the pen, the tool reads your pointer position, converts it from screen coordinates into canvas coordinates, and draws short line segments between successive points with rounded caps and joins so the stroke looks smooth. Nothing about your drawing leaves your device: the image lives entirely in the canvas's pixel buffer in memory, which is also why you can keep working with the network switched off. There is no account, no cloud sync, and no upload — the trade-off is that closing the tab discards the board unless you download it first.

Raster, not vector — and why it matters

A key thing to understand is that this is a raster canvas. Once you draw a rectangle, it becomes a permanent arrangement of coloured pixels, not a movable object you can later select and resize. That has practical consequences. The eraser does not delete a shape; it paints white over whatever is underneath, which is why erasing on a coloured background would leave white smudges (the board assumes a white page). Shapes are previewed live: while you drag a rectangle, the tool restores a snapshot of the canvas and redraws the shape on every mouse move, so you see it follow your cursor, and only commits it when you release.

How undo, redo, and the 20-step limit work

Every time you finish a stroke, shape, or text insertion, the board saves a snapshot of the entire canvas as a data URL and pushes it onto a history stack. Undo pops the latest snapshot onto a redo stack and repaints the previous one; redo reverses that. Because each snapshot is a full image of the board, memory adds up, so the history is capped at about 20 steps — the oldest snapshot is dropped once you exceed it. Two consequences follow: you cannot undo past 20 actions, and starting a brand-new stroke clears the redo stack, so anything you undid is gone the moment you draw again.

The tools, briefly

ToolWhat it does
PenFreehand stroke in the current colour and size
EraserPaints white at double the brush size
Line / Rect / CircleClick-drag to set start and end; previewed live
TextClick, type in the prompt; font scales with brush size

The text tool sizes its font at roughly three times the brush slider value (with a sensible minimum), so a larger brush also means larger lettering.

Practical tips

  • Hold a steady hand for shapes. Since line, rectangle, and circle are defined by where you press and where you release, drag in one smooth motion. The circle is drawn as an ellipse bounded by your drag box, so a square drag gives a true circle.
  • Download before you close. The "Download PNG" button exports exactly what is on the canvas at full resolution. There is no autosave, so treat the download as your save button.
  • Use a custom colour for precise work. The swatches cover common needs, but the colour input next to them accepts any hex value if you are matching a brand or diagram palette.
  • Resize matters. The canvas re-sizes itself to fit the window and restores your last snapshot when it does, but very aggressive resizing can soften edges as the saved image is scaled back in.

Common mistakes and pitfalls

  • Expecting to move a shape later. You can't — it's pixels. Plan placement, or undo and redraw.
  • Erasing over a non-white area. The eraser writes white, not transparency, so it only "disappears" against the white page.
  • Relying on deep undo. The 20-step cap and the redo-clearing behaviour mean undo is for recent slips, not a full history. For anything important, export intermediate versions.
  • Forgetting touch works too. The board listens for touch events, so a tablet and stylus give far better freehand control than a mouse for sketching and handwriting.

常见问题

{# Alpine.js — self-hosted. (The previous jsdelivr CDN tag had a stale SRI integrity hash, so the browser refused to run it and window.Alpine was never defined — silently breaking every FAQ accordion and Alpine tool.) #}