27 lines
1.0 KiB
JSON
27 lines
1.0 KiB
JSON
{
|
|
"id": "org.figcraft.examples.swatch-grid",
|
|
"name": "Swatch grid",
|
|
"version": "1.1.0",
|
|
"description": "Makes a grid of colour swatches from a built-in palette (in a panel) or from hex colours.",
|
|
"main": "swatch_grid.wasm",
|
|
"api": 2,
|
|
"permissions": {
|
|
"access": "write",
|
|
"commands": ["view.get", "shape.rectangle", "text.create", "select.set"]
|
|
},
|
|
"commands": [
|
|
{ "id": "panel", "label": "Palettes…" },
|
|
{
|
|
"id": "grid",
|
|
"label": "From hex colours…",
|
|
"params": [
|
|
{ "name": "palette", "label": "Palette", "type": "text", "default": "#FF5A5F, #FFB400, #00A699, #007A87, #7B0051, #3D3D3D" },
|
|
{ "name": "columns", "label": "Columns", "type": "number", "default": 3, "min": 1, "max": 24 },
|
|
{ "name": "size", "label": "Swatch size", "type": "number", "default": 64, "min": 8, "max": 512 },
|
|
{ "name": "gap", "label": "Gap", "type": "number", "default": 16, "min": 0, "max": 256 },
|
|
{ "name": "labels", "label": "Label each swatch", "type": "boolean", "default": true }
|
|
]
|
|
}
|
|
]
|
|
}
|