Color generators.
A set of functions to help with generating random types of color
.
Generators can return a single value or grouped values using arrays and matrix.
_rndmColor()
Generate a random color value.
- Name
transp
- Type
- bool
- Description
Set it to true, to use random transparency value. Optional. The default is false.
- Name
returns
- Type
- color
- Description
A random color value.
_rndmColorArray()
Generate a random color array.
- Name
size
- Type
- int
- Description
The size of the array. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.
- Name
transp
- Type
- bool
- Description
Set it to true, to use random transparency values. Optional. The default is false.
- Name
returns
- Type
- array<color>
- Description
A random color array.
_rndmColorMatrix()
Generate a random color matrix.
- Name
rows
- Type
- int
- Description
Total row size. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.
- Name
columns
- Type
- int
- Description
Total column size. By default its set to 0, which implies a random length between 3-10 values. Optional. The default is 0.
- Name
transp
- Type
- bool
- Description
Set it to true, to use random transparency values. Optional. The default is false.
- Name
returns
- Type
- matrix<color>
- Description
A random color matrix.