package stdune

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

8 bit RGB color

val to_int : t -> int

RGB8.to_int t returns the int value of t as an 8 bit integer.

val of_int : int -> t

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

val of_char : char -> t

RGB8.of_char c creates an RGB8.t from a char considered as an 8 bit integer.

val to_char : t -> char

RGB8.to_char t returns the char value of t considered as an 8 bit integer.

OCaml

Innovation. Community. Security.