magicalrainbows v0.0.1 (2020-07-27T23:50:37Z)
Dub
Repo
colourConstructors
magicalrainbows
utils
Undocumented in source.
package
mixin template
colourConstructors () {
this
(uint red, uint green, uint blue);
this
(AnalogRGB analog);
auto
opCast
();
this
(uint red, uint green, uint blue, uint alpha);
this
(AnalogRGBA analog);
static if
(
hasAlpha!(typeof(this))
)
auto
opCast
();
static if
(!(
hasAlpha!(typeof(this))
))
auto
opCast
();
}
Constructors
this
this
(uint red, uint green, uint blue)
Undocumented in source.
this
this
(AnalogRGB analog)
Undocumented in source.
this
this
(uint red, uint green, uint blue, uint alpha)
Undocumented in source.
this
this
(AnalogRGBA analog)
Undocumented in source.
Members
Functions
opCast
auto
opCast
()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
auto
opCast
()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
auto
opCast
()
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
magicalrainbows
utils
enums
hasAlpha
hasBlue
hasGreen
hasRed
isColourFormat
isDigital
maxAlpha
maxBlue
maxGreen
maxRed
maxValue
functions
alphaFP
asBytes
asLinearRGB
blueFP
colourConvert
greenFP
read
redFP
mixin templates
colourConstructors