API ReferenceSandbox.UI

Shadowclass

Shadow style settings

objectShadow
Namespace
Sandbox.UI
Assembly
Sandbox.System
Declaration
public sealed struct Sandbox.UI.Shadow

Methods2

Showing 2 methods

public Sandbox.UI.Shadow LerpTo(Sandbox.UI.Shadow shadow, float delta)PUBLIC

Perform linear interpolation between 2 shadows.

ParameterTypeDescription
shadowShadowThe target shadow to morph into.
deltafloatProgress of the transformation. 0 = original shadow, 1 = fully target shadow.
Returns:ShadowThe interpolated shadow.

public Sandbox.UI.Shadow Scale(float f)PUBLIC

Scale all variables by given scalar.

ParameterTypeDescription
ffloatHow much to scale the shadow parameters by. 1 is no change, 2 is double the sizes, etc.
Returns:ShadowThe scaled shadow.

On this page