The OpenD Programming Language

ggplotd.colourspace

This module mostly exist to have a bridge with the ggplotd code and the ggplotd.color code. That is because the ggplotd.color code might become part of phobos one day and I don't want to depend directly on ggplotd's implementation, so that it stays easy to switch to an alternative (phobos) based implementation.

Members

Aliases

HCY
alias HCY = chsx.HCY!double

HCY colourspace

RGB
alias RGB = crgb.RGB!("rgb", double)

RGB colourspace

RGBA
alias RGBA = crgb.RGB!("rgba", double)

RGBA colourspace

XYZ
alias XYZ = cxyz.XYZ!double

XYZ colourspace

isColour
alias isColour = cColor.isColor

Check whether it is a colour

toColourSpace
alias toColourSpace = cspace.convertColor

Convert to another colour space

Functions

fromCairoRGBA
C fromCairoRGBA(cairo.RGBA crgb)

Convert from Cairo colour to specified type (template)

toCairoRGBA
cairo.RGBA toCairoRGBA(C from)

Convert to Cairo colour

toTuple
auto toTuple(T colour)

Convert colour to a tuple holding the values

toTuple
auto toTuple(T colour)

Convert colour to a tuple holding the values

toTuple
auto toTuple(T colour)

Convert colour to a tuple holding the values

Meta