struct Gradient

in global :: Sandbox

Describes a gradient between multiple colors


public Gradient.BlendMode Blending { get; set; }

The blend mode

public ImmutableList<Gradient.ColorFrame> Colors { get; set; }

A list of color stops, which should be ordered by time

public ImmutableList<Gradient.AlphaFrame> Alphas { get; set; }

A list of color stops, which should be ordered by time

public int AddColor( float x, ref Color color )

Add a color position

public int AddAlpha( float x, float alpha )

Add an alpha position

public int AddColor( ref Gradient.ColorFrame keyframe )

Add given keyframe to this curve.

  • keyframe The keyframe to add.
  • Returns The position of newly added keyframe in the list.

public Color Evaluate( float time )

Evaluate the blend using the time, which is generally between 0 and 1

public Type GetType( )

😔 No documentation found.

public string ToString( )

😔 No documentation found.

public int GetHashCode( )

😔 No documentation found.

public bool Equals( object obj )

😔 No documentation found.

public Gradient( )

😔 No documentation found.

public Gradient( Gradient.ColorFrame[] frames )

😔 No documentation found.

public Gradient.ColorFrame Item { get; set; }

😔 No documentation found.

public Gradient WithFrames( ImmutableList<Gradient.ColorFrame> frames )

😔 No documentation found.

public static Gradient op_Implicit( Color value )

😔 No documentation found.

public int AddAlpha( ref Gradient.AlphaFrame keyframe )

😔 No documentation found.

public void FixOrder( )

😔 No documentation found.