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
color | The color to simulate. |
colorVision | The type of color vision to simulate. |
Returns
Color | The 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
colors | The colors to simulate. |
colorVision | The 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
color | The color to simulate. |
matrix | The color matrix to apply. |
anomaly | Applies partial color blindness (default=false). |
Returns
Color | The 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
colors | The colors to simulate. |
matrix | The color matrix to apply. |
anomaly | Applies 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
color | The color to simulate. |
vector | The color dot vector to apply. |
anomaly | Applies partial color blindness (default=false). |
Returns
Color | The 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
colors | The colors to simulate. |
vector | The color dot vector to apply. |
anomaly | Applies partial color blindness (default=false). |
Returns
Color[] | The simulated colors. |