The D Programming Language's Unofficial Docs
beta
Dlang.org
Get Help
moderate
arsd
color
for light colors, call darken. for dark colors, call lighten. The goal: get toward center grey.
@
safe
nothrow pure @
safe
@
nogc
Color
moderate
(
Color
c
,
double
percentage
)
arsd
color
classes
IndexedImage
TrueColorImage
functions
alphaBlend
colorFromString
darken
desaturate
extremify
findNearestColor
floodFill
floydSteinbergDither
fromHsl
fromOklab
lighten
linearOffset
makeAlpha
makeTextColor
moderate
oppositeLightness
quantize
rotateHue
saturate
setHue
setSaturation
srgbToLinearRgb
toHsl
toOklab
unalpha
interfaces
MemoryImage
structs
Angle
Color
ColorF
Lab
Point
Rectangle
Size
Suggestion Box / Bug Report
for light colors, call darken. for dark colors, call lighten. The goal: get toward center grey.