Module Svg.Color

Describing colours with which to paint paths and draw text.

type color =
  1. | Black
  2. | White
  3. | Blue
  4. | Gray
  5. | Green
  6. | Purple
  7. | Red
  8. | Lime
  9. | Yellow
  10. | Cyan
  11. | Magenta
  12. | Silver
  13. | Teal
  14. | Navy
  15. | Hex of int
    (*

    6-digit hex code (lacking alpha)

    *)
  16. | RGB of int * int * int

Basic colours options, along with Hex 0xFFFFFF and RGB (r, g, b) constructors for arbitrary colour specification

type t

A colour with transparency (alpha) value.

val make : ?alpha:float -> color -> t

make ?alpha c

Create a colour with the transparency alpha (default = 0.8).