Search Results for

    Show / Hide Table of Contents

    Class Texture2DExtensions

    Inheritance
    object
    Texture2DExtensions
    Namespace: GGL.Extensions
    Assembly: GGL.dll
    Syntax
    public static class Texture2DExtensions

    Methods

    | Edit this page View Source

    Paint(Texture2D, Color, Func<int, int, bool>)

    Paint and apply color to a texture.

    Declaration
    public static Texture2D Paint(this Texture2D texture, Color color, Func<int, int, bool> condition = null)
    Parameters
    Type Name Description
    Texture2D texture
    Color color
    Func<int, int, bool> condition
    Returns
    Type Description
    Texture2D
    Remarks

    Old pixels are interpolated with the color alpha.

    | Edit this page View Source

    PaintBorder(Texture2D, Color, int)

    Paint and apply a colored border to a texture.

    Declaration
    public static Texture2D PaintBorder(this Texture2D texture, Color boderColor, int borderWidth)
    Parameters
    Type Name Description
    Texture2D texture
    Color boderColor
    int borderWidth
    Returns
    Type Description
    Texture2D
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX