Materializr
Open-source parametric 3D CAD for makers — constraint sketches, solid modeling, threads, SVG & text engraving, STL/STEP export. Android, iPad, Linux, Mac, Windows. Vibe coded.
翻译准备中
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Art Studio: beginner-friendly digital painting app with layers, watercolor/oil brushes, pixel art and an infinite canvas. Play in your browser.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗| How | |
|---|---|
| 🌐 Option 1: Online | Open jaineil32624.github.io/Art-Studio and start painting. |
| ⬇️ Option 2: Download | Get Art-Studio.zip, unzip it and double-click index.html. It works offline and there's nothing to install. |
| 📱 Option 3: Phone / tablet | Open the link, then tap Share → Add to Home Screen (iPhone/iPad) or ⋮ → Add to Home screen (Android). |
💡 Your artwork autosaves in the browser. Use File → Export project to back it up or move it to another device.
| Key | Tool | Key | Action | |
|---|---|---|---|---|
B | 🖌️ Brush | Ctrl Z | ↩️ Undo | |
N | ✏️ Pencil | Ctrl Y | ↪️ Redo | |
M | 🖍️ Marker | Ctrl S | 💾 Save in browser | |
E | 🧽 Eraser | Ctrl E | 🖼️ Export PNG | |
W | 💧 Watercolor | Ctrl O | 📂 Open project | |
O | 🎨 Oil paint | Space + drag | ✋ Pan | |
A | 🌫️ Spray paint | Wheel / pinch | 🔍 Zoom | |
P | 👾 Pixel art | [ ] | ↔️ Brush size | |
F | 🌊 Flow field | Shift [ ] | 🌗 Opacity | |
Y | 🎀 Ribbon | X | 🔁 Swap colors | |
C | 🍃 Scatter shapes | Alt + click | 💉 Pick a color | |
K | 🕸️ Sketchy web | Ctrl J | 📄 Duplicate layer | |
Q | 🧩 Pattern brush |
Art Studio is plain HTML, CSS and JavaScript, with no libraries, no build step and no network access. It runs straight from disk (file://). In the code, everything lives under the window.App2 namespace.
+/− keys, or the zoom buttons. Fit and 100% are also available.X).localStorage a few seconds after each change. The previous session is restored when you reopen the app..app2.json files, which hold the layers as PNG data URLs (one per tile) plus metadata. You can also drop a project file or an image onto the canvas.Art-Studio/
├── index.html ← loads every script in dependency order (classic <script> tags)
├── css/app.css ← dark theme + responsive layout
└── js/
├── core/ ← namespace, EventBus, math (rects, matrices), color, noise (Perlin/fBm/Worley), Store (app state)
├── canvas/ ← TiledLayer, ArtDocument, Viewport, History, Commands (undoable layer ops), Symmetry, Renderer
├── tools/
│ ├── tool.js ← Tool base class + ToolManager + App2.tools.register()
│ ├── brush-tool.js ← generic driver: smoothing, spacing, pressure, symmetry lanes, stroke buffers, history
│ ├── brushes/ ← brush-engine registry + one file per engine
│ └── *-tool.js ← hand, select, pixel, fill, gradient, shape, eyedropper, sticker/place
├── creative/ ← textures, stickers, patterns, palettes
├── io/ ← project (de)serialisation, localStorage, export/import
├── ui/ ← icons, DOM helpers, top bar, tool bar, panels, canvas input, shortcuts
└── main.js ← boot: builds App2.app and wires everything together
Key ideas:
window.App2. This avoids import, which is blocked under file://. index.html lists the scripts in dependency order.paint(). All pixel writes go through layer.paint(worldRect, fn). The callback runs once for each 256 px tile in the rectangle, with the context already translated into world coordinates. Tiles are created on demand, and an attached history recorder snapshots each tile before it changes.history.begin(layer) → paint → history.end(label). Each entry stores only the dirty rectangle of each touched tile, as before and after ImageData. Tiles that end up empty are deleted. Layer and structure operations are stored as small undo()/redo() closures (see canvas/actions.js).destination-out for the eraser). This is why opacity never builds up within a stroke.ctx.transform.app.bus (doc:changed, layers:changed, tool:changed, color:changed, …). The renderer batches drawing with requestAnimationFrame.js/tools/brushes/my-brush.js:(function (App2) {
'use strict';
const { Color } = App2.core;
App2.brushes.register({
id: 'confetti-line', // unique; also the tool id
name: 'Confetti Line', // tooltip + panel title
icon: 'sparkles', // any key from js/ui/icons.js
shortcut: 'j', // optional single key
group: 'gen', // paint | art | gen (tool bar grouping)
order: 260, // position in the tool bar
description: 'Little squares along the stroke.',
buffered: false, // true = paint into a stroke buffer (no build-up)
defaults: { size: 30, opacity: 1, spacing: 0.4, jitter: 0.5 },
options: [ // extra controls, rendered automatically
{ key: 'jitter', label: 'Jitter', type: 'range', min: 0, max: 1, step: 0.01, format: 'pct' },
],
// Called for each evenly spaced dab. p = {x, y, pressure, angle, radius, alpha, dist}
dab(s, p) {
// IMPORTANT: compute all randomness BEFORE painting. paint() calls the
// callback once per touched tile, so random values generated inside it
// would differ between tiles and leave visible seams.
const ox = (s.rng() - 0.5) * p.radius * s.settings.jitter * 2;
const oy = (s.rng() - 0.5) * p.radius * s.settings.jitter * 2;
const color = Color.rgba(Color.hueShiftRgb(s.rgb, s.rng() * 60), 1);
s.paintAt(p.x + ox, p.y + oy, p.radius, (ctx) => {
ctx.globalAlpha = p.alpha;
ctx.fillStyle = color;
ctx.fillRect(p.x + ox - p.radius / 2, p.y + oy - p.radius / 2, p.radius, p.radius);
});
},
});
})(window.App2);
<script src="js/tools/brushes/my-brush.js"></script> to index.html, after brush-tool.js and before main.js.That's all. The engine appears in the tool bar with a tooltip and shortcut, gets a settings panel (size, opacity, hardness, spacing, smoothing, pressure toggles and your options) and works with symmetry, undo/redo, Alt-to-pick and saving.
Other hooks you can use:
begin(s) / end(s): run at the start and end of a stroke. Keep per-stroke state in s.state.segment(s, a, b): replaces dab for continuous drawing (see pencil.js).airbrush: true: keeps emitting dabs while the pointer is held still.composite: 'destination-out': how a buffered stroke is committed.s.sample(x, y, r): average color under the brush, used for smudging.Custom non-brush tools subclass App2.tools.Tool and call App2.tools.register({ id, name, icon, shortcut, group, order, defaults, create: (app, def) => new MyTool(app, def) }).
localStorage is limited, so very large documents need Export project.MIT © 2026 Jaineil Rana. See LICENSE.
Ctrl M |
| ⬇️ Merge down |
G | 🪣 Fill bucket | 0 / 1 | 🎯 Fit / 100% |
D | 🌈 Gradient | Enter / Esc | ✅ Apply / ❌ cancel sticker |
U | 🔷 Shapes | Delete | 🗑️ Clear selection |
I | 💉 Eyedropper | Tab | 🧰 Show/hide panels |
S | 🦄 Stickers | ? | ❓ Help |
R | ⬚ Select | 🎵 button | 🔊 Music on/off |
H | ✋ Hand |