@pixerate/editor 0.273.0 → 0.275.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/animation-editor/index.cjs +60 -60
- package/dist/animation-editor/index.js +4 -4
- package/dist/brushes/index.cjs +102 -74
- package/dist/brushes/index.js +34 -6
- package/dist/brushes/patch.d.cts +1 -1
- package/dist/brushes/patch.d.ts +1 -1
- package/dist/brushes/preview.d.cts +3 -0
- package/dist/brushes/preview.d.ts +3 -0
- package/dist/brushes/profiles.d.cts +2 -0
- package/dist/brushes/profiles.d.ts +2 -0
- package/dist/brushes/schema.d.cts +4 -0
- package/dist/brushes/schema.d.ts +4 -0
- package/dist/brushes/types.d.cts +47 -0
- package/dist/brushes/types.d.ts +47 -0
- package/dist/{brushstrokeRender-5YBCLFDQ.cjs → brushstrokeRender-2RQL46WB.cjs} +15 -15
- package/dist/{brushstrokeRender-DZGFU3J4.js → brushstrokeRender-WGY4DZHF.js} +3 -3
- package/dist/canvas/index.cjs +13 -13
- package/dist/canvas/index.js +1 -1
- package/dist/{chunk-2XDNF73E.js → chunk-43XJC3PP.js} +1 -1
- package/dist/{chunk-GHGBIAWQ.cjs → chunk-6QNDGMK7.cjs} +263 -45
- package/dist/{chunk-2F3YDXCN.js → chunk-75SYKUOT.js} +1 -1
- package/dist/{chunk-M3RZOF3G.cjs → chunk-C6VB7CPY.cjs} +1 -1
- package/dist/{chunk-N5IMDAHM.cjs → chunk-DHC4E2DU.cjs} +89 -37
- package/dist/{chunk-NAHJV3O6.js → chunk-G5TCMKX5.js} +28 -11
- package/dist/{chunk-DZVRH63Y.js → chunk-IEEY5RJV.js} +1 -1
- package/dist/{chunk-7W2EQQBP.cjs → chunk-JDXWLCXF.cjs} +6 -6
- package/dist/{chunk-N3SKPQEH.js → chunk-LMG57L5A.js} +62 -10
- package/dist/{chunk-5HP2VSAS.js → chunk-MSWLJI4G.js} +1 -1
- package/dist/{chunk-SNAFFCAX.cjs → chunk-OLZXXAER.cjs} +221 -196
- package/dist/{chunk-YJANF2BL.cjs → chunk-RAPNRK4R.cjs} +86 -86
- package/dist/{chunk-CLB2I2FU.js → chunk-RJGW3RQS.js} +2 -2
- package/dist/{chunk-FXVCB6YG.cjs → chunk-T6KNJVBP.cjs} +35 -35
- package/dist/{chunk-ZEI7ZEA4.js → chunk-Y2ISSVPH.js} +34 -9
- package/dist/{chunk-3JKCREEU.cjs → chunk-Y354ETAE.cjs} +76 -59
- package/dist/{chunk-TNLKFW7D.cjs → chunk-YYZC2EQO.cjs} +23 -23
- package/dist/{chunk-UXYCY3HP.js → chunk-ZM7IKQ4X.js} +239 -21
- package/dist/image-editor/index.cjs +789 -789
- package/dist/image-editor/index.js +5 -5
- package/dist/paint/index.cjs +2 -2
- package/dist/paint/index.js +1 -1
- package/dist/paint/wet/world.d.cts +15 -2
- package/dist/paint/wet/world.d.ts +15 -2
- package/dist/paint-editor/brush-controls.d.cts +7 -0
- package/dist/paint-editor/brush-controls.d.ts +7 -0
- package/dist/paint-editor/brush-model.d.cts +59 -1
- package/dist/paint-editor/brush-model.d.ts +59 -1
- package/dist/paint-editor/collaboration.d.cts +6 -1
- package/dist/paint-editor/collaboration.d.ts +6 -1
- package/dist/paint-editor/controller.d.cts +199 -1
- package/dist/paint-editor/controller.d.ts +199 -1
- package/dist/paint-editor/dab-stroke.d.cts +3 -0
- package/dist/paint-editor/dab-stroke.d.ts +3 -0
- package/dist/paint-editor/document.d.cts +13 -3
- package/dist/paint-editor/document.d.ts +13 -3
- package/dist/paint-editor/engine.d.cts +3 -0
- package/dist/paint-editor/engine.d.ts +3 -0
- package/dist/paint-editor/evolution-tools.d.cts +48 -0
- package/dist/paint-editor/evolution-tools.d.ts +48 -0
- package/dist/paint-editor/evolution.d.cts +175 -0
- package/dist/paint-editor/evolution.d.ts +175 -0
- package/dist/paint-editor/heat.d.cts +156 -0
- package/dist/paint-editor/heat.d.ts +156 -0
- package/dist/paint-editor/index.cjs +4905 -1525
- package/dist/paint-editor/index.d.cts +5 -0
- package/dist/paint-editor/index.d.ts +5 -0
- package/dist/paint-editor/index.js +10952 -7572
- package/dist/paint-editor/mutation-tools.d.cts +13 -0
- package/dist/paint-editor/mutation-tools.d.ts +13 -0
- package/dist/paint-editor/mutation.d.cts +67 -0
- package/dist/paint-editor/mutation.d.ts +67 -0
- package/dist/paint-editor/presence.d.cts +7 -1
- package/dist/paint-editor/presence.d.ts +7 -1
- package/dist/paint-editor/procedural.d.cts +3 -0
- package/dist/paint-editor/procedural.d.ts +3 -0
- package/dist/paint-editor/stroke.d.cts +32 -2
- package/dist/paint-editor/stroke.d.ts +32 -2
- package/dist/paint-editor/thick.d.cts +48 -7
- package/dist/paint-editor/thick.d.ts +48 -7
- package/dist/paint-editor/ui.d.cts +36 -1
- package/dist/paint-editor/ui.d.ts +36 -1
- package/dist/paint-editor/wet.d.cts +8 -1
- package/dist/paint-editor/wet.d.ts +8 -1
- package/dist/vector/index.cjs +999 -999
- package/dist/vector/index.js +5 -5
- package/package.json +1 -1
- package/skills/README.md +1 -0
- package/skills/pixerate-brushes/SKILL.md +3 -0
- package/skills/pixerate-paint-editor/SKILL.md +36 -53
- package/skills/pixerate-paint-editor/references/brush-facets.md +3 -0
- package/skills/pixerate-paint-editor/references/mutation.md +25 -0
- package/skills/pixerate-paint-editor/references/oils.md +8 -1
- package/skills/pixerate-paint-editor/references/smart-inks.md +51 -0
- package/skills/pixerate-paint-mutation/SKILL.md +76 -0
- package/skills/pixerate-paint-mutation/evals/decline-unanswered.json +58 -0
- package/skills/pixerate-paint-mutation/evals/dry-ink-answer.json +74 -0
- package/skills/pixerate-paint-mutation/evals/wet-wash-answer.json +76 -0
- package/skills/pixerate-paint-oil-impasto/SKILL.md +2 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"prompt": "Claim the pending wet mutation stroke on the canvas, let it fade away, and paint a warm amber (#d97706) watercolour-round answer stroke across the canvas.",
|
|
3
|
+
"fixture": {
|
|
4
|
+
"editor": "paint",
|
|
5
|
+
"width": 200,
|
|
6
|
+
"height": 200,
|
|
7
|
+
"setup": [
|
|
8
|
+
{ "tool": "set_brush", "args": { "id": "mutation-wash" } },
|
|
9
|
+
{
|
|
10
|
+
"tool": "paint_stroke",
|
|
11
|
+
"args": {
|
|
12
|
+
"color": "#2563eb",
|
|
13
|
+
"points": [
|
|
14
|
+
{ "x": 40, "y": 100, "pressure": 0.8 },
|
|
15
|
+
{ "x": 120, "y": 100, "pressure": 0.8 }
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{ "tool": "advance_wet_paint", "args": { "seconds": 2 } }
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"checks": [
|
|
23
|
+
{
|
|
24
|
+
"tool": "list_mutations",
|
|
25
|
+
"expect": { "mutations": { "$length": 0 } },
|
|
26
|
+
"why": "No pending mutations remain"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"tool": "list_mutations",
|
|
30
|
+
"args": { "includeAll": true },
|
|
31
|
+
"expect": {
|
|
32
|
+
"mutations": [
|
|
33
|
+
{
|
|
34
|
+
"id": "m1",
|
|
35
|
+
"state": "answered",
|
|
36
|
+
"answerStrokeIds": { "$length": { "$min": 1 } }
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
},
|
|
40
|
+
"why": "Mutation m1 was claimed and answered"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"tool": "list_strokes",
|
|
44
|
+
"expect": {
|
|
45
|
+
"strokes": {
|
|
46
|
+
"$some": { "color": "#d97706" }
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"why": "The warm amber answer stroke is recorded on the canvas"
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
"solution": [
|
|
53
|
+
{ "tool": "list_mutations" },
|
|
54
|
+
{ "tool": "read_mutation", "args": { "id": "m1" } },
|
|
55
|
+
{
|
|
56
|
+
"tool": "answer_mutation",
|
|
57
|
+
"args": {
|
|
58
|
+
"id": "m1",
|
|
59
|
+
"note": "Warm amber arc answering the blue wash",
|
|
60
|
+
"strokes": [
|
|
61
|
+
{
|
|
62
|
+
"brushId": "watercolor-round",
|
|
63
|
+
"brush": { "tip": { "size": 18 } },
|
|
64
|
+
"color": "#d97706",
|
|
65
|
+
"points": [
|
|
66
|
+
{ "x": 70, "y": 50, "pressure": 0.6 },
|
|
67
|
+
{ "x": 110, "y": 100, "pressure": 0.85 },
|
|
68
|
+
{ "x": 150, "y": 150, "pressure": 0.6 }
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{ "tool": "advance_wet_paint", "args": { "seconds": 3 } }
|
|
75
|
+
]
|
|
76
|
+
}
|
|
@@ -69,6 +69,7 @@ This skill is the method. `pixerate-paint-editor` has the full tool reference an
|
|
|
69
69
|
| A glowing, glassy bead (a neon or glass tube) | `glow-gel` (light paint with rim and clarity, on dark paper; one loop per layer where they cross) |
|
|
70
70
|
| Dry, broken strokes over texture | `dry-brush`, or a lower `behaviour.thick.load` |
|
|
71
71
|
| A metallic highlight | `metallic-paint` |
|
|
72
|
+
| Iridescent structural colour (beetle shell, soap film, pearl glaze) | `scarab-lacquer`, `soap-film`, `pearl-glaze` (or `iridescence` facet); tilt view with `set_view_tilt` |
|
|
72
73
|
| Paint that stays exactly as laid | `set_instant_dry` on |
|
|
73
74
|
|
|
74
75
|
## Recipes
|
|
@@ -98,7 +99,7 @@ light → short strokes following the form → `set_lighting` → `get_relief`.
|
|
|
98
99
|
- `add_layer`, `update_layer`: a layer per pass
|
|
99
100
|
- `mix_colors`, `color_harmony`, `add_swatch`, `set_color`: palette
|
|
100
101
|
- `set_brush`, `paint_stroke`, `clean_mixer_brush`: block in, build, blend and impasto strokes
|
|
101
|
-
- `set_lighting`, `get_relief`, `flatten_relief`: the relief and
|
|
102
|
+
- `set_lighting`, `set_view_tilt`, `get_view_tilt`, `get_relief`, `flatten_relief`: the relief, thin-film iridescence and their light / view angle
|
|
102
103
|
- `set_instant_dry`: strokes that dry as they end
|
|
103
104
|
- `undo_paint`: take back a step
|
|
104
105
|
- `export_image`: deliver
|