Module Bogue.RGB

module RGB: sig .. end

RGB colors


type t = int * int * int 

red, green and blue values are integers in the range 0..255

Predefined colors

include Rgb_names
val grey : t
val pale_grey : t
val dark_grey : t

Theme colors

val label_color : t
val set_text_color : t -> unit

Overrides the Theme TEXT_COLOR variable.

Utils

val find_color : string -> t

Convert a string of the form "grey" or "#FE01BC" to a rgb code (r,g,b). Color names are taken from here.

val pale : t -> t