Search Results for

    Show / Hide Table of Contents

    Class ColorBlind

    Color blindness simulation formula

    Inheritance
    object
    BaseTransformationFormula
    ColorBlind
    Implements
    ITransformationFormula
    Namespace: Terminaux.Colors.Transformation.Formulas
    Assembly: Terminaux.dll
    Syntax
    public class ColorBlind : BaseTransformationFormula, ITransformationFormula

    Properties

    | Edit this page View Source

    Deficiency

    Color blindness deficiency

    Declaration
    public ColorBlindDeficiency Deficiency { get; set; }
    Property Value
    Type Description
    ColorBlindDeficiency
    | Edit this page View Source

    Frequency

    Frequency of the transformation formula

    Declaration
    public override double Frequency { get; set; }
    Property Value
    Type Description
    double
    Overrides
    BaseTransformationFormula.Frequency
    | Edit this page View Source

    Simple

    Uses Vienot's formula insteas of Brettel's

    Declaration
    public bool Simple { get; set; }
    Property Value
    Type Description
    bool

    Methods

    | Edit this page View Source

    Transform(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

    Overrides
    BaseTransformationFormula.Transform(int, int, int)

    Implements

    ITransformationFormula
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX