package stdune

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t

24 bit RGB color

val red : t -> int

RGB24.red t returns the red component of t

val green : t -> int

RGB24.green t returns the green component of t

val blue : t -> int

RGB24.blue t returns the blue component of t

val make : red:int -> green:int -> blue:int -> t

RGB24.make ~red ~green ~blue creates an RGB24.t from the given components

val to_int : t -> int

RGB24.to_int t returns the int value of t as a 24 bit integer.

val of_int : int -> t

RGB24.of_int i creates an RGB24.t from an int considered as a 24 bit integer. The first 8 bits are discarded.