@pbroom/color-kit/driverColor input

ColorInputPrimitiveExpressionOptions

Options shape shared with primitive input expression parsers (structurally compatible with control-kit's PrimitiveExpressionParser callback).

interfaceimport type { ColorInputPrimitiveExpressionOptions } from '@pbroom/color-kit/driver';color-input.ts:129
interface ColorInputPrimitiveExpressionOptions {
  allowExpressions: boolean;
  currentValue: number;
  range: [number, number];
}

Properties

allowExpressionsboolean
Accept arithmetic and relative expressions, not just a single number.
currentValuenumber
Current channel value; the left operand of relative input like +10.
range[number, number]
Channel range [min, max]; percentages are fractions of its span.