96 lines
2.0 KiB
JSON
96 lines
2.0 KiB
JSON
{
|
|||
|
|
"componentId": "diophantine-sphere",
|
||
|
|
"displayName": "Diophantine Sphere",
|
||
|
|
"description": "Diophantine Sphere glitch component for Glitch University",
|
||
|
|
"version": "1.0.0",
|
||
|
|
"folderName": "glitch_diophantine_sphere",
|
||
|
|
"packageName": "@glitch-components/diophantine-sphere",
|
||
|
|
"entry": "dist/diophantine-sphere.js",
|
||
|
|
"source": "src/index.tsx",
|
||
|
|
"tags": [
|
||
|
|
"glitch-component",
|
||
|
|
"diophantine",
|
||
|
|
"sphere",
|
||
|
|
"integer",
|
||
|
|
"visualization"
|
||
|
|
],
|
||
|
|
"paramSchema": {
|
||
|
|
"allowNegative": {
|
||
|
|
"type": "boolean",
|
||
|
|
"label": "Allow Negative Values",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"normalizeDistance": {
|
||
|
|
"type": "boolean",
|
||
|
|
"label": "Normalize Distance",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"showComplexityOverlay": {
|
||
|
|
"type": "boolean",
|
||
|
|
"label": "Show Complexity Range",
|
||
|
|
"default": true
|
||
|
|
},
|
||
|
|
"complexityMode": {
|
||
|
|
"type": "select",
|
||
|
|
"label": "Complexity Mode",
|
||
|
|
"default": "surface",
|
||
|
|
"options": [
|
||
|
|
{
|
||
|
|
"value": "surface",
|
||
|
|
"label": "Surface"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"value": "single",
|
||
|
|
"label": "Single C"
|
||
|
|
},
|
||
|
|
{
|
||
|
|
"value": "range",
|
||
|
|
"label": "Range 1..C"
|
||
|
|
}
|
||
|
|
]
|
||
|
|
},
|
||
|
|
"radius": {
|
||
|
|
"type": "range",
|
||
|
|
"label": "D",
|
||
|
|
"default": 4,
|
||
|
|
"min": 1,
|
||
|
|
"max": 8,
|
||
|
|
"step": 0.25
|
||
|
|
},
|
||
|
|
"complexity": {
|
||
|
|
"type": "range",
|
||
|
|
"label": "C",
|
||
|
|
"default": 17,
|
||
|
|
"min": 1,
|
||
|
|
"max": 96,
|
||
|
|
"step": 1
|
||
|
|
},
|
||
|
|
"dotRadius": {
|
||
|
|
"type": "range",
|
||
|
|
"label": "R",
|
||
|
|
"default": 0.5,
|
||
|
|
"min": 0.05,
|
||
|
|
"max": 1.2,
|
||
|
|
"step": 0.01
|
||
|
|
},
|
||
|
|
"axisSize": {
|
||
|
|
"type": "range",
|
||
|
|
"label": "A",
|
||
|
|
"default": 1,
|
||
|
|
"min": 0.25,
|
||
|
|
"max": 2.5,
|
||
|
|
"step": 0.05
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"defaultParams": {
|
||
|
|
"allowNegative": true,
|
||
|
|
"normalizeDistance": true,
|
||
|
|
"showComplexityOverlay": true,
|
||
|
|
"complexityMode": "surface",
|
||
|
|
"radius": 4,
|
||
|
|
"complexity": 17,
|
||
|
|
"dotRadius": 0.5,
|
||
|
|
"axisSize": 1
|
||
|
|
}
|
||
|
|
}
|