Procreate and Feather 3D rolled into one. But this time, for Android.
A touch-native, multi-layer image editor for Android — sketch, paint, retouch, and composite with layers, blend modes, curves, text, and stencils. Built entirely in Kotlin + Jetpack Compose.
Graffux is the standalone 2D editor extracted from GraffitiXR (an AR mural-projection app). It hosts the shared editor stack as the single source of truth; GraffitiXR consumes the same modules for its 2D work and adds AR on top.
Features
- Layers — add image, blank, or grouped layers; reorder, rename, toggle visibility, duplicate, merge down, flatten, link (so a contiguous run moves/scales/rotates together), clip to below, alpha lock, blend modes, per-layer opacity/tone.
- Transform — move / scale / rotate by gesture, or type exact values in the numeric transform panel; Distort (4 handles) and Warp (16 handles) for perspective/bend.
- Adjustments — opacity, brightness, contrast, saturation, colour balance, curves (a monotone
cubic-spline LUT baked into the layer), invert, colour-lookup (
.cubeLUT) extensions. - Paint — brush and eraser with size + hardness, brush packs on a half wheel that opens from the rail's Brush and Eraser, colour, node-edited vector paths (Pen), Heal, Clone, Blur, Sharpen, Smudge, Liquify (native GLES warper), Dodge, Burn, Colorize, plus wraparound painting mode. Brush Studio for building custom brushes.
- Selection — freehand/rectangle/ellipse/automatic (magic-wand) selection, Subject (ML Kit subject isolation, on the device and offline), add/remove/replace, save named selections, colour-fill/copy/cut/paste within a selection. On a multi-view 3D surface a magic-wand or lasso selection follows the surface as the camera orbits.
- Effects — Canny edge outline, sketch, ML Kit subject isolation, multi-layer stencil generation.
- Text — parametric text layers with Google Fonts.
- Vector shapes — rectangle, ellipse, line, and regular polygons as their own editable layers.
- One 3D space — every layer is a plane that can be moved, pushed back and tilted in XYZ,
seen through one perspective camera, with no separate 3D mode. Two fingers pan, zoom and twist
the view about the current axis (Z rotates the canvas; X and Y orbit the camera in depth); with
the Move / Transform tool they move, push and rotate the active layer instead. Layers stay 2D or
3D by their group: the rail's axis slot reads "3D" while the active layer's group is flat; a tap arms
"Draw surface" (the slot turns bright white and reads "Draw" and a chip says to drag one line; Cancel, Back or the slot
again changes nothing, and a layer in no group is grouped only once the line is drawn); on a 3D layer it (or a
double-tap) steps X / Y / Z and always shows the current one. Every brush and tool
paints on the tilted plane where the finger touches it. A document never moved in 3D draws exactly
as before. A layer group can own a surface: "Draw surface" in its menu turns the next stroke
into a profile curve swept into depth, and the group's layers are painted on that shape
("Flatten surface" makes it flat again). Its guide grid follows the shape in perspective, so
strokes can be traced in depth without moving the view. Groups keep their tile on the layers rail,
open by default. See
spec/3d-space.md. ("Build surface from image" turns a photo layer into a paintable relief surface with the installed depth model: a strength slider and a near/far swap shape it, and you paint on it with the brush, eraser, fill, clone, lasso and wand like any other surface. It needs a depth-model package from the Store.) (A group's surface can also be drawn from the side and top; the outlines intersect into one 3D shape. You can paint on every face: each view has its own paint image, and a stroke that crosses from one face to another is one undo step. The faces a drawn view does not bound (caps) are drawn and paintable too, paint you made on the flat surface before drawing a second view is carried onto the shape, duplicating a layer copies its view paint, and Fill (which spreads across creases), Clone (with its reticle) and the lasso (which skips faces turned away) work on the right face. Automatic selection floods across creases and selects only what faces you, and moving a selection's pixels slides the paint over the shape, into the next face across a crease, as one undo step. The painted shape shows in the canvas and exports to glTF with its textures.) - 3D strokes layers — draw real XYZ pressure-sensitive curves against adjustable camera-facing planes, anchored planes, cylinders and spheres, in a layer of the stack composited with the paint layers (View → 3D → New 3D strokes layer). Missing a bounded guide ends that segment rather than bridging empty space; editing a guide never moves existing curves. Erase and undo/redo with the editor's history. Projects with the old Spatial Sketch open with it as a 3D strokes layer (project format v7).
- glTF scene export — File → Export 3D scene (glTF): each paint, text and vector layer as a textured quad at its placement, each 3D strokes layer as tube geometry, and the camera. PNG, PDF and Share render the 3D placement as seen from the current camera; a flat document exports as before.
- Per-pixel depth — planes that cross in space, and 3D strokes among them, hide each other pixel by pixel on the GPU.
- 3D model layers — import an
.objas a layer in the same 3D space as every other layer: moved with the same Move-tool gestures, painted on its UV surface with the brush and eraser, depth-tested against planes and 3D strokes, and exported to glTF with its painted texture. - Animation Assist — each top-level layer as one frame, with onion skinning, playback, and time-lapse recording of a drawing session.
- Reference & import — a floating reference image that stays on top while you draw; import frames from a Figma file (via a personal access token) as layers; import a Procreate document.
- Extensions (azphalt) — install signed filter/LUT/code extensions from a separate store app or
an
azphalt://deep link (confirmed before install); code extensions run sandboxed (Chicory WASM/QuickJS, deny-by-default capabilities, bounded memory and execution time — seespec/package-format.md). - Artboard — a fixed document size (social / print / custom presets) with a visible frame.
- Export & share — save the composite to the gallery, or hand it to another app (e.g. GraffitiXR). Poster PDF tiles the artwork (after the document crop) at real size across Letter, A4, A3 or Legal pages, with margins, overlap, crop and registration marks and row/column labels.
The chrome is Graffux's own: a tool rail, a layers rail, menus and a bottom carousel over a
full-screen canvas. AzNavRail supplies only the About
reader. See ARCHITECTURE.md for module boundaries and invariants.
Architecture
MVI: a pure EditorReducer maps EditorIntents to the next EditorUiState; EditorViewModel
orchestrates side effects (history, persistence) around each dispatch.
| Module | Responsibility |
|---|---|
:app |
The Graffux application shell — MainActivity hosts the rails, carousel and the shared editor. |
:feature:editor |
The editor: reducer, view-model, canvas, panels, brush/stroke engine, export. |
:core:engine |
Kotlin Multiplatform engine shared with desktop: azphalt brush/manifest models, dab generation. |
:desktop |
The desktop (Linux/Windows) Compose app; see DESKTOP.md. |
:core:common |
Models (Layer, EditorUiState, GraffitiProject), serialization, shared utilities. |
:core:domain |
Repository interfaces. |
:core:data |
Project + settings persistence. |
:core:design |
Design system: theme, strings, reusable components. |
:core:ml |
Host-side ML runtime (ONNX Runtime): the DepthEstimator for onnx + role depth extension models (MiDaS, Depth Anything V2 and V3 small), driven by each listing's io block, whose weights (one file or a multi-file bundle) :core:data downloads and checksum-verifies. |
:core:nativebridge |
JNI bridge to the native world: the Liquify warper (LiquifyEngine) and the GPU brush engine. |
Brushes paint on the GPU through the wgpu engine (core/wgpu-engine, shared with the desktop app).
There is no CPU renderer: on a device where wgpu can't start, strokes are not painted and the App
says so (HardwareFloorNotice). The wgpu library ships for both 64-bit
(arm64-v8a) and 32-bit (armeabi-v7a) devices, so both paint on the GPU. wgpu is the only GPU backend: the earlier
Vulkan and OpenGL ES engines, and the Settings switch between them, were retired (see
ARCHITECTURE.md, Decisions, and docs/Native Rendering Engine Design.md §2c).
The :core:* and :feature:editor modules keep the com.hereliesaz.graffitixr namespace — they are
the shared single source of truth. Only :app is Graffux-specific (com.hereliesaz.graffux).
Roadmap
Graffux is growing toward a full, touch-first design tool.
Landed in the audit round (each checked on main):
- Per-project palette, recipe and stroke persistence with atomic writes and
.bakrecovery (#785, #789). - Consent and recorded stroke data kept out of backup and device transfer (#796); projects and models out of cloud backup (#790).
.fuximport hardening (#807): onlyUrifields are localized, escapes decode leniently, JSON depth is capped at 64 (MAX_JSON_DEPTH) and a URI over 4096 characters is refused (core/data/.../ArchiveUris.kt:52,165).- OBJ import caps (#809): 64 MiB read (
ModelCoopCodec.MAX_OBJ_BYTES, enforced byModelFiles.readBounded), 400,000 triangles, 64 K characters per line, 16,384 corners per face (ObjParser.MAX_TRIANGLES,MAX_LINE_CHARS,MAX_FACE_CORNERS); memory figures inspec/3d-space.md(Import). .azpentry-count and manifest/signature size caps (#811).- Extension-list disclosure and failure-reason scrub (#813):
docs/PRIVACY_POLICY.md(effective November 9, 2026) andspec/state-reporting.md(sanitizeReason(): per-token redaction, first 400 characters in, 200 out). - One shared GPU device for the standalone compute entries (#805) and long paint transactions as bounded chunks (#806).
- Relay nesting, line, body-read and limiter bounds (#802).
- Type scale floored at 12sp (#808,
core/design/.../theme/Typography.kt:57); Settings insets, announced title and strings in resources (#810). - Accessibility and UX (audit package 7): pane titles, traversal order and logo menu semantics (#812); dialog and window buttons holding their label at large font scales (#814); project delete control, confirmation and list refresh (#815); mixer feedback and rinse confirmation (#817); pivot prompt placement and the 48dp set-wheel touch band (#818); tap and accessibility alternatives to the sheet's stage swipes (#819); dead code, stale comments and more chrome text moved to resources (#820); review follow-ups for the pane, dialog-button and project-delete changes (#823).
- Spec (#824): planned view control for projects with 3D groups (the view-control section of
spec/3d-space.md).
Open
-
Relay authentication. The relay limits abuse; it does not authenticate. The next step is Play Integrity attestation, which needs a Google Cloud project and a server-side key (
workers/stroke-relay/README.md). -
Content-provider exposure (owner decision).
ExtensionStateProviderisexported="true"behind anormal-level permission any installed app can declare. #813 discloses it; whether to keep it is undecided (app/src/main/AndroidManifest.xml,spec/state-reporting.md). -
wgpu cost weights are unmeasured on hardware.
COST_PER_TEXEL,MAX_CHUNK_COST,MAX_DAB_COSTand the chunk timeout incore/wgpu-engine/src/transaction.rsare guesses;spec/painterly-device-matrix.mdlists the measurements. -
DabTooLargehas no user-visible refusal yet. The transaction planner returns it for a dab overMAX_DAB_COST, and no app code calls the standalone entries yet (transaction.rs); the first production caller must surface it. -
Co-op
LayerAddcarries a peer-suppliedLayer(Op.LayerAddincore/common/.../model/Op.kt), including itsuri. Not traced. Co-op is a no-op in the app (app/.../di/CoopModule.kt), so it is unreachable until co-op is wired. -
Hard-coded UI strings remain. The 16
ToolEntry(...)labels inToolCatalog.kt(for exampleToolEntry("tool.brush", "Brush", ...)) are literals. A pattern count overmainfound 181 matches infeature/editor, 12 inapp/src/mainand 13 indesktop, 206 in all. Run in the repository root for each directory:grep -rEn --include='*.kt' --exclude='*Test*' --exclude-dir=test --exclude-dir=androidTest \ -e 'Text\(\s*(text\s*=\s*)?"[^"]' -e 'contentDescription\s*=\s*"[^"]' \ -e '(label|title|placeholder|text)\s*=\s*\{?\s*(Text\()?"[^"]' feature/editor | wc -lIt counts non-empty literals in
Text(...),contentDescription =andlabel/title/placeholder/text =. It is a pattern count, not an audit: some matches may not be user-visible, and calls split across lines or built another way are missed. The gesture enum labels are not in it, and the count moves asmaindoes. -
Set-wheel names are still ellipsized (
CarouselSetWheel.kt: the name is measured withoverflow = TextOverflow.Ellipsis, maxLines = 1). -
Compare is hold-only (
CompareButtoninPhotoSheet.ktsets the comparison on touch-down and clears it on release or cancel; the description isR.string.photo_compare, "Hold to compare with original"); there is no toggle. -
Painterly build. Resident-canvas transaction, bundled packs, lift tail, drawn brush, demo replay and device verification: see "Build status" in
spec/painterly.md. -
Legal documents. See "Privacy policy and Terms" below.
-
Missing specs.
spec/extension-manifest.md,pack.md,companion-app.md,mcp-server.md,ui-schema.mdandrepository-api.mdare cited by the code and do not exist (ARCHITECTURE.md;spec/package-format.mdandspec/store-app.md, "Open items"). Theaudiocapability is declared but has no host bridge, andEXTRA_ENTITLEMENTandEXTRA_REPORT_TOKENare read but never spent. -
Planning notes.
docs/planning/holds earlier verification-contract checklists (objective-verification-contract.md,todo-verification-contract.md,verification-contract-remaining-todos.md,verification-contract-todo-items.md,verification-contract-todos.md). Their README calls them non-authoritative and overlapping; they carry TODO items this audit did not triage againstmain. -
Material-aware engine. Pending items are in
docs/Material-Aware Paint Engine Implementation Status.md, "Remaining prioritized TODO". -
Upstream.
app/.../carousel/Keylines.kt:254keepsTODO(b/420998605), an upstream Material 3 carousel issue the fork inherits; remove it when the fork is rebased onto a release that has it. -
In progress: view control in a project with 3D groups (the view-control section of
spec/3d-space.md; it says what is built). Progress is tracked in that section's status lines and in the open pull requests. The plan covers view gestures (two-finger orbit, pinch zoom, twist rotates the canvas, double-tap resets the view), a default flat surface for a group whose surface the user does not draw, and the surface look (canvas background fill, the user's grid as the mesh, no document boundary). Still undecided in the spec's open points: orbit and reset equivalents for accessibility (point 3) and how export frames the view once the document boundary is not drawn (point 6). -
Bind layers to the artboard (letterbox) and export at exact document pixels.
-
Snapping, smart guides, and align / distribute.
Privacy policy and Terms
docs/PRIVACY_POLICY.mdis deployed with the site (docs/.assetsignorelets it through) and served at https://graffux.hereliesaz.workers.dev/PRIVACY_POLICY.md.docs/TERMS_OF_SERVICE.mdis not deployed:docs/.assetsignoreexcludes every other*.md, and that address returns 404 for it. It is in the repository only.- The landing page (
docs/index.html) links to neither. No link to either was found in the app's own screens; the About reader (AboutReader.kt) is AzNavRail's, pointed at the repository, and which documents it lists is not verified here. The Play listing's policy URL is set in Play Console and is not in this repository.
License
See the repository for license details.