ggplotd.color

This package contains implementations of various common color types. Types are supplied for various color spaces, along with comprehensive color space conversion functionality.

Modules

conv
module ggplotd.color.conv

This module implements various _color type conversions.

hsx
module ggplotd.color.hsx
Undocumented in source.
rgb
module ggplotd.color.rgb

This module implements the RGB _color type.

xyz
module ggplotd.color.xyz

This module implements XYZ and xyY _color types.

Public Imports

ggplotd.color.rgb
public import ggplotd.color.rgb;
Undocumented in source.

Members

Aliases

A8
alias A8 = RGB!("a", ubyte)

8 bit alpha-only color type.

BGR8
alias BGR8 = RGB!("bgr", ubyte)

24 bit BGR color type with 8 bits per channel.

BGRA8
alias BGRA8 = RGB!("bgra", ubyte)

32 bit BGR + alpha color type with 8 bits per channel.

BGRX8
alias BGRX8 = RGB!("bgrx", ubyte)

32 bit BGR color type with 8 bits per channel.

L8
alias L8 = RGB!("l", ubyte)

8 bit luminance-only color type.

LA8
alias LA8 = RGB!("la", ubyte)

16 bit luminance + alpha color type with 8 bits per channel.

RGB8
alias RGB8 = RGB!("rgb", ubyte)

24 bit RGB color type with 8 bits per channel.

RGBA8
alias RGBA8 = RGB!("rgba", ubyte)

32 bit RGB + alpha color type with 8 bits per channel.

RGBAf32
alias RGBAf32 = RGB!("rgba", float)

Floating point RGB + alpha color type.

RGBX8
alias RGBX8 = RGB!("rgbx", ubyte)

32 bit RGB color type with 8 bits per channel.

RGBf32
alias RGBf32 = RGB!("rgb", float)

Floating point RGB color type.

UV8
alias UV8 = RGB!("rg", byte)

16 bit signed UV color type with 8 bits per channel.

UVf32
alias UVf32 = RGB!("rg", float)

Floating point UV color type.

Enums

Colors
enum Colors

Set of colors defined by X11, adopted by the W3C, SVG, and other popular libraries.

isColor
eponymoustemplate isColor(T)

Detect whether T is a color type defined under std.color.

Functions

blend
C blend(C src, C dest, F srcFactor, F destFactor)
Undocumented in source. Be warned that the author may not have intended to support it.
blend
C blend(C src, C dest, F srcFactor, F destFactor, F srcAlphaFactor, F destAlphaFactor)
Undocumented in source. Be warned that the author may not have intended to support it.
lerp
C lerp(C a, C b, F t)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixin templates

ColorOperators
mixintemplate ColorOperators(Components...)
Undocumented in source.

Templates

ComponentExpression
template ComponentExpression(string expression, string component, string op)
Undocumented in source.

Meta

Authors

Manu Evans