Module Bogue.RGBA

module RGBA: sig .. end

RGBA colors


type t = int * int * int * int 

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

Predefined colors

include Rgba_names
val grey : t
val pale_grey : t
val dark_grey : t
val none : t

none = (0,0,0,0) is completely transparent black.

Theme colors

val label_color : t
val set_text_color : t -> unit

Overrides the Theme TEXT_COLOR variable.

Utils

val lighter : t -> t
val darker : t -> t
val set_alpha : int -> t -> t
val transp : RGB.t -> t
val random_color : unit -> t
val find_color : string -> t