Materializr
開源參數式 3D CAD 給創客 — 受限草圖、實體建模、螺紋、SVG 與文字雕刻、STL/STEP 匯出。Android、iPad、Linux、Mac、Windows。Vibe 編碼。
AI 翻譯
個人 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 |