package JsOfOCairo

  1. Overview
  2. Docs
type 'a t constraint 'a = [< `Solid | `Surface | `Gradient | `Linear | `Radial ]
type any = [ `Solid | `Surface | `Gradient | `Linear | `Radial ] t
val add_color_stop_rgb : [> `Gradient ] t -> ?ofs:float -> float -> float -> float -> unit
val add_color_stop_rgba : [> `Gradient ] t -> ?ofs:float -> float -> float -> float -> float -> unit
val get_color_stop_count : [> `Gradient ] t -> int
val get_color_stop_rgba : [> `Gradient ] t -> idx:int -> float * float * float * float * float
val create_rgb : float -> float -> float -> [ `Solid ] t
val create_rgba : float -> float -> float -> float -> [ `Solid ] t
val get_rgba : [> `Solid ] t -> float * float * float * float
val create_linear : x0:float -> y0:float -> x1:float -> y1:float -> [ `Linear | `Gradient ] t
val get_linear_points : [> `Linear | `Gradient ] t -> float * float * float * float
val create_radial : x0:float -> y0:float -> r0:float -> x1:float -> y1:float -> r1:float -> [ `Radial | `Gradient ] t
val get_radial_circles : [> `Radial | `Gradient ] t -> float * float * float * float * float * float
OCaml

Innovation. Community. Security.