struct CrystGLFW::Monitor::GammaRamp

Overview

A GammaRamp object wraps an underlying GLFW Gammaramp and exposes its attributes.

Defined in:

crystglfw/monitors/gamma_ramp.cr

Instance Method Summary

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

[View source]
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]

[View source]
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

[View source]
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

[View source]
def size : UInt32 #

Returns the number of elements in each color array.

monitor = Monitor.primary
gamma_ramp = monitor.gamma_ramp
gamma_ramp.size

[View source]