Home / Market / ink custom brush builder

ink custom brush builder

Creates custom BrushFamily definitions for an Android app using Jetpack Ink (androidx.ink 1.1.0-alpha03 and higher). Use this skill when configuring custom BrushTip shapes, adding pressure, tilt, speed, or noise sensitivity using BrushBehavior node graphs, creating multi-coat layered brushes, applying tiling or particle stamping textures, configuring SlidingWindowModel input smoothing, or serializing brushes. Delivers complete Kotlin BrushFamily, BrushCoat, BrushTip, BrushPaint, and BrushBehavio

skill★ 10849575 dlskills.shApache-2.0Install in CosmosUpstream Source

Documentation & Preview

--- name: ink-custom-brush-builder description: Creates custom BrushFamily definitions for an Android app using Jetpack Ink (androidx.ink 1.1.0-alpha03 and higher). Use this skill when configuring custom BrushTip shapes, adding pressure, tilt, speed, or noise sensitivity using BrushBehavior node graphs, creating multi-coat layered brushes, applying tiling or particle stamping textures, configuring SlidingWindowModel input smoothing, or serializing brushes. Delivers complete Kotlin BrushFamily, BrushCoat, BrushTip, BrushPaint, and BrushBehavior implementations. Don't use for View-based (XML) inking, Compose drawing surface setup, or stock brush selection. For Compose drawing surface setup, InProgressStrokes wet and dry rendering, eraser, or persistence, suggest the ink-app-builder skill. license: Complete terms in LICENSE.txt metadata: author: Google LLC last-updated: '2026-10-28' keywords:

---

Custom brushes in the Android Ink API are built around the BrushFamily hierarchy:

BrushFamily ├── InputModel (BrushFamily.InputModel.SlidingWindowModel or PASSTHROUGH_MODEL) └── BrushCoat[] (one or more rendering layers) ├── BrushTip (shape: scaleX, scaleY, cornerRounding, rotationDegrees, slantDegrees, pinch) │ └── BrushBehavior[] (dynamic response to stylus or touch input) │ └── Tree: TargetNode(input = [Operators](input = SourceNode)) └── BrushPaint (visual appearance) ├── SelfOverlap (ANY, ACCUMULATE, or DISCARD) ├── TextureLayer[] (BrushPaint.TilingTexture or BrushPaint.StampingTexture) └── BrushPaint.ColorFunction[] (OpacityMultiplier or ReplaceColor)

Create a Brush by combining a custom BrushFamily with a Compose Color, size, and epsilon:

val brush = Brush.createWithComposeColor(
    family = myCustomFamily,
    color = Color.Black,
    size = 10f,
    epsilon = 0.1f,
)

<br />

> Version and experimental API requirements : > - Requires androidx.ink 1.1.0-alpha03 and higher : In 1.0.0 (Stable) > and 1.1.0-alpha01-alpha02, BrushFamily(...), BrushCoat, BrushTip, > BrushPaint, BrushBehavior, and androidx.ink.brush.behavior.* nodes > were @RestrictTo(LIBRARY_GROUP) (in 1.0.0 stable, custom brushes can > only be loaded from binary proto streams using BrushFamily.decode). > Starting in 1.1.0-alpha03 and higher , programmatic custom brush > constructors graduated to public API (BrushPaint.TilingTexture, > BrushPaint.StampingTexture, BrushPaint.ColorFunction, > BrushFamily.InputModel.SlidingWindowModel, and all behavior nodes). > - No @OptIn required in 1.1.0-alpha03 and higher : All public custom > brush classes and ink-storage BrushFamily serialization APIs > (BrushFamily.encode and decode, AndroidBrushFamilySerialization, > BrushFamilyDecodeCallback) are unannotated in 1.1.0-alpha03 and higher > (ExperimentalInkCustomBrushApi is @RestrictTo(LIBRARY_GROUP) in > 1.1.0-alpha05 and higher, and is only required on BrushFamily > serialization in 1.0.0 stable).

Workflow and task routing

Follow these conditional instructions based on the requested custom brush task:

Antipatterns