User Tools

Site Tools


api:random_color_range

RANDOM_COLOR_RANGE

Category: Data

Cloneable

Properties


Min

Serialized

Lower value of Range.

  • Type: color
  • Expected: color value
  • Default value: COL_BLACK

Max

Serialized

Upper value of Range.

  • Type: color
  • Expected: color value
  • Default value: COL_WHITE

LockValues

Serialized

If true, the values will stay proportional to each other; ex. Min = { 0, 0, 0.5, 0 } & Max = { 0.5, 0.5, 1, 1 } will return random values like : { 0.25, 0.25, 0.75, 0.5 }. If false, each value will be random; ex. Min = { 0, 0, 0.5, 0 } & Max = { 0.5, 0.5, 1, 1 } will return random values like : { 0.15, 0.45, 0.95, 0.56 } or { 0.35, 0.05, 0.55, 0.61 }.

  • Type: boolean
  • Expected: boolean value
  • Default value: false
api/random_color_range.txt · Last modified: 2022/12/02 14:10 (external edit)