struct CrystGLFW::Monitor::GammaRamp
- CrystGLFW::Monitor::GammaRamp
- Struct
- Value
- Object
Overview
A GammaRamp object wraps an underlying GLFW Gammaramp and exposes its attributes.
Defined in:
crystglfw/monitors/gamma_ramp.crInstance Method Summary
-
#blue : Array(UInt16)
Returns an array of values that describes the response of the blue channel.
-
#channels : NamedTuple()
Returns the response values of each channel.
-
#green : Array(UInt16)
Returns an array of values that describes the resposne of the green channel.
-
#red : Array(UInt16)
Returns an array of values that describes the response of the red channel.
-
#size : UInt32
Returns the number of elements in each color array.
Instance Method Detail
def blue : Array(UInt16)
#
Returns an array of values that describes the response of the blue channel.
monitor = Monitor.primary
gamma_ramp = monitor.gamma_ramp
gamma_ramp.blue
def channels : NamedTuple()
#
Returns the response values of each channel.
monitor = Monitor.primary
gamma_ramp = monitor.gamma_ramp
channels = gamma_ramp.channels
red_response = channels[:red]
green_response = channels[:green]
blue_response = channels[:blue]
def green : Array(UInt16)
#
Returns an array of values that describes the resposne of the green channel.
monitor = Monitor.primary
gamma_ramp = monitor.gamma_ramp
gamma_ramp.green
def red : Array(UInt16)
#
Returns an array of values that describes the response of the red channel.
monitor = Monitor.primary
gamma_ramp = monitor.gamma_ramp
gamma_ramp.red
def size : UInt32
#
Returns the number of elements in each color array.
monitor = Monitor.primary
gamma_ramp = monitor.gamma_ramp
gamma_ramp.size