Channels and Size

You can retrieve an array of numbers that represents the response of a color channel.

red, green, and blue

If you want to get the response of the red channel of a GammaRamp, you can use the red method:

gamma_ramp.red # => Array(UInt16)

The same is true for both the green and blue channels:

gamma_ramp.green # => Array(UInt16)
gamma_ramp.blue # => Array(UInt16)

red, green, and blue must be called from within a run block definition.

size

You can use the size method to retrieve the size of the channel response arrays:

gamma_ramp.size # => 1024

size must be called from within a run block definition.

results matching ""

    No results matching ""