Class ColorBlind
Color blindness simulation formula
Implements
Namespace: Terminaux.Colors.Transformation.Formulas
Assembly: Terminaux.dll
Syntax
public class ColorBlind : BaseTransformationFormula, ITransformationFormula
Properties
| Edit this page View SourceDeficiency
Color blindness deficiency
Declaration
public ColorBlindDeficiency Deficiency { get; set; }
Property Value
Type | Description |
---|---|
ColorBlindDeficiency |
Frequency
Frequency of the transformation formula
Declaration
public override double Frequency { get; set; }
Property Value
Type | Description |
---|---|
double |
Overrides
| Edit this page View SourceSimple
Uses Vienot's formula insteas of Brettel's
Declaration
public bool Simple { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceTransform(int, int, int)
Transforms the colors using the implementation formula.
Declaration
public override (int, int, int) Transform(int r, int g, int b)
Parameters
Type | Name | Description |
---|---|---|
int | r | Red color level |
int | g | Green color level |
int | b | Blue color level |
Returns
Type | Description |
---|---|
(int R, int G, int B) | Transformed RGB values |