package glfw-ocaml

  1. Overview
  2. Docs

GammaRamp module. Describes the gamma ramp for a monitor.

type channel = (int, Stdlib.Bigarray.int16_unsigned_elt, Stdlib.Bigarray.c_layout) Stdlib.Bigarray.Array1.t
type t = private {
  1. red : channel;
  2. green : channel;
  3. blue : channel;
}
val create : red:channel -> green:channel -> blue:channel -> t

Create a gamma ramp from three user-supplied channels.

  • raises Invalid_argument

    if the supplied channels are of different lengths.

val make : size:int -> t

Create an empty gamma ramp with three channels of the given size.