Introduction

This package provides a wide array of functions for dealing with color.

Available colorspaces include:

  • RGB, BGR, XRGB, RGBX, RGB24
  • HSV, HSL, HSI
  • XYZ, xyY, LMS
  • Lab, Luv, LCHab, LCHuv
  • DIN99, DIN99d, DIN99o
  • YIQ, YCbCr
  • Gray, Gray24
  • and their transparent variants: ARGB, RGBA, ARGB32, AHSV, HSVA, and so on

Package Features

Installation

The package can be installed with the Julia package manager. From the Julia REPL, type ] to enter the Pkg REPL mode and run:

pkg> add Colors

Reexport

Note that Colors is used within other packages (e.g. Images) and may have been reexported by them. In addition, the color types used by Colors are defined in ColorTypes package. Colors reexports the types and functions exported by ColorTypes. For example, that means:

julia> using Images; # instead `using Colors`

julia> RGB # You can use the types and functions (re-)exported by Colors.
RGB

julia> RGB === Images.RGB === Colors.RGB === ColorTypes.RGB
true