: Gg.color -> _
val Gg.Color.a : Gg.color -> float
a c
is the alpha component of c
.
val Gg.Color.b : Gg.color -> float
b c
is the blue component of c
.
val Gg.Color.g : Gg.color -> float
g c
is the green component of c
.
val Gg.Color.r : Gg.color -> float
r c
is the red component of c
.
val Gg.Color.to_luv : Gg.color -> luv
to_luv c
is the Gg
color c
as a L*u*v* color.
val Vg.I.const : Gg.color -> Vg.image
const c
is an image of color c
.
val Gg.Color.to_lab : Gg.color -> Gg.v4
to_lab c
is the Gg
color c
as a L*a*b* color.
val Gg.Color.to_srgb : Gg.color -> srgb
to_srgb c
is the Gg
color c
as a sRGB color.
val Gg.Color.clamp : Gg.color -> Gg.color
clamp c
is c
with all components clamped to [0;1
]. nan
components are left untouched.
val Gg.Color.to_lch_ab : Gg.color -> lch_ab
to_lch_ab c
is the Gg
color c
as a L*C*hab.
val Gg.Color.to_lch_uv : Gg.color -> lch_uv
to_lch_uv c
is the Gg
color c
as a L*C*huv.
val Gg.Color.with_a : Gg.color -> float -> Gg.color
with_a c a
is the same color as c
but with the alpha component a
.
val Gg.Color.blend : Gg.color -> Gg.color -> Gg.color
blend src dst
is src
blended over dst
using source over destination alpha blending. See Alvy Ray Smith. Image compositing fundamentals. 1995.
val Gg.Color.to_srgbi : Gg.color -> (int * int * int * float)
to_srgbi c
is the Gg
color c
as a 24-bit sRGB color (r, g, b, a)
, see v_srgbi
.
val Curve_sampling.to_latex : _ t -> ?n:int -> ?arrow:string -> ?arrow_pos:float -> ?color:Gg.color -> string -> unit
to_latex t fname
saves the sampling t
as PGF/TikZ commands.
val Curve_sampling.to_latex_channel : _ t -> ?n:int -> ?arrow:string -> ?arrow_pos:float -> ?color:Gg.color -> out_channel -> unit
to_latex_channel t ch
writes the sampling t
as PGF/TikZ commands to the channel ch
. See to_latex
for the meaning of optional arguments.