simplify more
This commit is contained in:
parent
f03da42b5e
commit
2fe3c69963
40 changed files with 689 additions and 872 deletions
|
|
@ -1,6 +1,8 @@
|
|||
import { colorInteractionControl } from './color-interactions';
|
||||
import type { GardenAppConfig } from './types';
|
||||
|
||||
const formatPercent = (value: number): string => `${Math.round(value * 100)}%`;
|
||||
|
||||
export const runtimeControls: GardenAppConfig['runtimeSettings']['controls'] = {
|
||||
color1ToColor1: colorInteractionControl('1 -> 1'),
|
||||
color1ToColor2: colorInteractionControl('1 -> 2'),
|
||||
|
|
@ -26,21 +28,6 @@ export const runtimeControls: GardenAppConfig['runtimeSettings']['controls'] = {
|
|||
max: 1,
|
||||
step: 0.001,
|
||||
},
|
||||
brushSizeVariation: {
|
||||
folder: 'Brush',
|
||||
label: 'brush variance',
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
diffusionRateBrush: {
|
||||
folder: 'Brush',
|
||||
label: 'brush diffusion',
|
||||
min: 0.001,
|
||||
max: 1,
|
||||
step: 0.001,
|
||||
},
|
||||
|
||||
sensorOffsetDistance: {
|
||||
folder: 'Agents',
|
||||
label: 'sensor distance',
|
||||
|
|
@ -62,6 +49,21 @@ export const runtimeControls: GardenAppConfig['runtimeSettings']['controls'] = {
|
|||
max: 200,
|
||||
step: 1,
|
||||
},
|
||||
forwardRotationScale: {
|
||||
folder: 'Agents',
|
||||
format: formatPercent,
|
||||
label: 'following sensor %',
|
||||
min: 0,
|
||||
max: 1,
|
||||
step: 0.01,
|
||||
},
|
||||
turnWhenLost: {
|
||||
folder: 'Agents',
|
||||
label: 'turn when lost',
|
||||
min: 0,
|
||||
max: 6.28,
|
||||
step: 0.01,
|
||||
},
|
||||
individualTrailWeight: {
|
||||
folder: 'Agents',
|
||||
label: 'individual trail weight',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue