Class SweepGradient | UIWidgets | 1.5.4-preview.12
docs.unity3d.com
    Show / Hide Table of Contents

    Class SweepGradient

    Inheritance
    Object
    Gradient
    SweepGradient
    Inherited Members
    Gradient.colors
    Gradient.stops
    Gradient._impliedStops()
    Gradient.lerp(Gradient, Gradient, Single)
    Namespace: Unity.UIWidgets.painting
    Syntax
    public class SweepGradient : Gradient, IEquatable<SweepGradient>

    Constructors

    SweepGradient(Alignment, Single, Single, List<Color>, List<Single>, TileMode)

    Declaration
    public SweepGradient(Alignment center = null, float startAngle = 0F, float endAngle = default(float), List<Color> colors = null, List<float> stops = null, TileMode tileMode = TileMode.clamp)
    Parameters
    Type Name Description
    Alignment center
    Single startAngle
    Single endAngle
    List<Color> colors
    List<Single> stops
    TileMode tileMode

    Fields

    center

    Declaration
    public readonly Alignment center
    Field Value
    Type Description
    Alignment

    endAngle

    Declaration
    public readonly float endAngle
    Field Value
    Type Description
    Single

    startAngle

    Declaration
    public readonly float startAngle
    Field Value
    Type Description
    Single

    tileMode

    Declaration
    public readonly TileMode tileMode
    Field Value
    Type Description
    TileMode

    Methods

    createShader(Rect)

    Declaration
    public override PaintShader createShader(Rect rect)
    Parameters
    Type Name Description
    Rect rect
    Returns
    Type Description
    PaintShader
    Overrides
    Gradient.createShader(Rect)

    Equals(Object)

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj
    Returns
    Type Description
    Boolean
    Overrides
    Object.Equals(Object)

    Equals(SweepGradient)

    Declaration
    public bool Equals(SweepGradient other)
    Parameters
    Type Name Description
    SweepGradient other
    Returns
    Type Description
    Boolean

    GetHashCode()

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    Int32
    Overrides
    Object.GetHashCode()

    lerp(SweepGradient, SweepGradient, Single)

    Declaration
    public static SweepGradient lerp(SweepGradient a, SweepGradient b, float t)
    Parameters
    Type Name Description
    SweepGradient a
    SweepGradient b
    Single t
    Returns
    Type Description
    SweepGradient

    lerpFrom(Gradient, Single)

    Declaration
    protected override Gradient lerpFrom(Gradient a, float t)
    Parameters
    Type Name Description
    Gradient a
    Single t
    Returns
    Type Description
    Gradient
    Overrides
    Gradient.lerpFrom(Gradient, Single)

    lerpTo(Gradient, Single)

    Declaration
    protected override Gradient lerpTo(Gradient b, float t)
    Parameters
    Type Name Description
    Gradient b
    Single t
    Returns
    Type Description
    Gradient
    Overrides
    Gradient.lerpTo(Gradient, Single)

    scale(Single)

    Declaration
    public override Gradient scale(float factor)
    Parameters
    Type Name Description
    Single factor
    Returns
    Type Description
    Gradient
    Overrides
    Gradient.scale(Single)

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    Overrides
    Object.ToString()

    Operators

    Equality(SweepGradient, SweepGradient)

    Declaration
    public static bool operator ==(SweepGradient left, SweepGradient right)
    Parameters
    Type Name Description
    SweepGradient left
    SweepGradient right
    Returns
    Type Description
    Boolean

    Inequality(SweepGradient, SweepGradient)

    Declaration
    public static bool operator !=(SweepGradient left, SweepGradient right)
    Parameters
    Type Name Description
    SweepGradient left
    SweepGradient right
    Returns
    Type Description
    Boolean
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023