Oklabval sexp_of_t : t -> Sexplib0.Sexp.tconstructors
val create :
l:Base.float ->
a:Base.float ->
b:Base.float ->
?alpha:Base.float ->
Base.unit ->
tCreate using direct Oklab values.
val of_rgb :
r:Base.float ->
g:Base.float ->
b:Base.float ->
?alpha:Base.float ->
Base.unit ->
tEach of r, g, b, and alpha must be in the range 0 to 1
Each of r, g, b must be in the range 0 to 255. alpha must be in the range 0 to 1
val of_rgb_hex : Base.string -> tParses css hex rgba colors
val to_string_css : t -> Base.stringFormats the color for use in a css color, in rgb notation
val to_string_hex : t -> Base.stringFormats the color for use in a css color, in hex notation
val lightness : t -> Base.floatval alpha : t -> Base.floatval set_lightness : t -> Base.float -> tval set_alpha : t -> alpha:Base.float -> tval lerp : t -> t -> Base.float -> tlerp start end mult produces a color that is between start and end as determined by mult, which must be in the range 0 to 1
Builds a color that is the result of compositing over on top of under taking trasnparencies into account.
module Lch : sig ... end