网页版经典画图
JS Paint,Isaiah Odhner (1j01),2014 年

正在布展…
它是怎么做的
- 第 1 步画布工具基于 canvas 2D 的像素操作,例如扫描线洪水填充。
- 第 2 步选区、撤销历史以图像快照管理。
- 第 3 步UI 用 CSS 复刻 Win98 的立体边框与位图图标。
- 第 4 步可作为 PWA 离线使用。
复刻配方
一段技术配方,可以直接交给 AI 编程助手,也可以自己照着写。想指定技术栈、位置和性能预算,就把它加入实现方案。
Use a canvas with imageSmoothingEnabled false and implement tools on ImageData: a Bresenham line for the pencil, a scanline flood fill for the bucket, and random points within a radius for the airbrush on a timer. Keep an undo stack of ImageData snapshots (or dirty-rect patches). Build the chrome with CSS bevels (two-tone borders and inset box-shadows), a 28-swatch palette, and a status bar showing pointer coordinates. Add one modern surprise of your own as an 'Extras' menu.


