Search Results for

    Show / Hide Table of Contents

    Class ColorExtensions

    Extension methods for the Color type

    Inheritance
    Object
    ColorExtensions
    Namespace: i5.Toolkit.Core.Utilities
    Assembly: cs.temp.dll.dll
    Syntax
    public static class ColorExtensions

    Methods

    ToArray(Color, Boolean)

    Converts the given color to a float array

    Declaration
    public static float[] ToArray(this Color color, bool includeAlpha = true)
    Parameters
    Type Name Description
    Color color

    The color to convert

    Boolean includeAlpha

    If true, the alpha value is included in the array, otherwise not

    Returns
    Type Description
    Single[]

    Returns a float array with three or four values containing the rgb and rgba components

    In This Article
    Back to top i5 Toolkit Documentation