contrast/apca_contrast
library
Classes
-
LstarRange
-
Represents a range of L* values that produce the same APCA Y value.
Functions
-
apcaYToLstarRange(double apcaY, {bool debug = false})
→ LstarRange
-
Given an APCA Y value, return the range of L* values that could produce it.
-
darkerBackgroundApcaY(double textApcaY, double apca, {bool debug = false})
→ double
-
-
darkerBackgroundLstar(double textLstar, double apca, {bool debug = false})
→ double
-
-
darkerBackgroundLstarUnsafe(double textLstar, double apca, {bool debug = false})
→ double
-
Returns the L* of a darker background that achieves
apca contrast
with text at textLstar.
-
darkerTextApcaY(double backgroundApcaY, double apca, {bool debug = false})
→ double
-
-
darkerTextLstar(double backgroundYLstar, double apca, {bool debug = false})
→ double
-
-
darkerTextLstarUnsafe(double backgroundLstar, double apca, {bool debug = false})
→ double
-
Returns the L* of a darker text that achieves
apca contrast
with background at backgroundLstar.
-
findBoundaryArgbsForApcaY(double apcaY)
→ List<int>
-
Finds sRGB boundary colors that produce the given apcaY.
-
lighterBackgroundApcaY(double textApcaY, double apca, {bool debug = false})
→ double
-
-
lighterBackgroundLstar(double textLstar, double apca, {bool debug = false})
→ double
-
-
lighterBackgroundLstarUnsafe(double textLstar, double apca, {bool debug = false})
→ double
-
Returns the L* of a lighter background that achieves
apca contrast
with text at textLstar.
-
lighterTextApcaY(double backgroundApcaY, double apca, {bool debug = false})
→ double
-
-
lighterTextLstar(double backgroundLstar, double apca, {bool debug = false})
→ double
-
-
lighterTextLstarUnsafe(double backgroundLstar, double apca, {bool debug = false})
→ double
-
Returns the L* of a lighter text that achieves
apca contrast
with background at backgroundLstar.