Skip to content

Type Alias: MinMaxGradient ​

ts
type MinMaxGradient = 
  | number
  | {
  alpha?: number;
  color: number;
  mode: "color";
}
  | {
  alpha?: number;
  alpha2?: number;
  color: number;
  color2: number;
  mode: "twoColors";
}
  | {
  gradient: Gradient;
  mode: "gradient";
}
  | {
  gradient: Gradient;
  gradient2: Gradient;
  mode: "twoGradients";
}
  | {
  gradient: Gradient;
  mode: "randomColor";
};

A colour that's constant, a random blend of two, a gradient over normalised time, a random point between two gradients, or a random sample of one gradient. A plain number is an opaque constant colour.

© 2026 PlayAdGentic