ColorBlindness.Simulate

Extension Method in ColorBlindness

Declaration

public static Color Simulate(this Color color, ColorVision colorVision)

Description

Simulates color blindness on the given color using the provided color vision type.

Parameters

colorThe color to simulate.
colorVisionThe type of color vision to simulate.

Returns

ColorThe simulated color.

Overload

Declaration

public static Color[] Simulate(this Color[] colors, ColorVision colorVision)

Description

Simulates color blindness on the given colors using the provided color vision type.

Parameters

colorsThe colors to simulate.
colorVisionThe type of color vision to simulate.

Returns

Color[]The simulated colors.

Overload

Declaration

public static Color Simulate(this Color color, float[] matrix, bool anomaly = false)

Description

Simulates color blindness on the given color using the provided matrix.

Parameters

colorThe color to simulate.
matrixThe color matrix to apply.
anomalyApplies partial color blindness (default=false).

Returns

ColorThe simulated color.

Overload

Declaration

public static Color[] Simulate(this Color[] colors, float[] matrix, bool anomaly = false)

Description

Simulates color blindness on the given colors using the provided matrix.

Parameters

colorsThe colors to simulate.
matrixThe color matrix to apply.
anomalyApplies partial color blindness (default=false).

Returns

Color[]The simulated colors.

Overload

Declaration

public static Color Simulate(this Color color, Vector3 vector, bool anomaly = false)

Description

Simulates color blindness on the given color using the provided dot vector.

Parameters

colorThe color to simulate.
vectorThe color dot vector to apply.
anomalyApplies partial color blindness (default=false).

Returns

ColorThe simulated color.

Overload

Declaration

public static Color[] Simulate(this Color[] colors, Vector3 vector, bool anomaly = false)

Description

Simulates color blindness on the given colors using the provided dot vector.

Parameters

colorsThe colors to simulate.
vectorThe color dot vector to apply.
anomalyApplies partial color blindness (default=false).

Returns

Color[]The simulated colors.