26 lines
520 B
TypeScript
26 lines
520 B
TypeScript
import type { NumberControlConfig } from './types';
|
|
|
|
export const colorInteractionSettings = {
|
|
color1ToColor1: 1,
|
|
color1ToColor2: 0,
|
|
color1ToColor3: 0,
|
|
color2ToColor1: 0,
|
|
color2ToColor2: 1,
|
|
color2ToColor3: 0,
|
|
color3ToColor1: 0,
|
|
color3ToColor2: 0,
|
|
color3ToColor3: 1,
|
|
};
|
|
|
|
export const colorInteractionControl = (label: string): NumberControlConfig => ({
|
|
folder: 'Color Reactions',
|
|
label,
|
|
min: -1,
|
|
max: 1,
|
|
step: 1,
|
|
options: {
|
|
'Move Toward': 1,
|
|
Ignore: 0,
|
|
'Move Away': -1,
|
|
},
|
|
});
|