Class Monochromacy
Full color blindness, can only see grayscale.
Implements
Inherited Members
Namespace: Terminaux.Colors.Transformation.Formulas
Assembly: Terminaux.dll
Syntax
public class Monochromacy : BaseTransformationFormula, ITransformationFormula
Properties
| Edit this page View SourceType
Monochromacy type
Declaration
public MonochromacyType Type { get; set; }
Property Value
Type | Description |
---|---|
MonochromacyType |
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 |