buildRgbColourArray()

Overview

public array function buildRgbColourArray(
      required numeric from
    , required numeric to  
    , required numeric step
)

Builds a matrix of RGB colour values based on a simple regular pattern.

Arguments

NameTypeRequiredDescription
fromnumericYesStarting value for each of the R, G and B colour values
tonumericYesEnding value for each of the R, G and B colour values
stepnumericYesAmount by which each value should increase for successive colours