AlphaComponent

Namespace: Murder.Components
Assembly: Murder.dll

public sealed struct AlphaComponent : IComponent

Set alpha of a component being displayed in the screen.

Implements: IComponent

⭐ Constructors

public AlphaComponent()
public AlphaComponent(AlphaSources source, float amount)

Parameters
source AlphaSources
amount float

public AlphaComponent(Single[] sources)

Parameters
sources float[]

⭐ Properties

Alpha

public float Alpha { get; }

Returns
float

⭐ Methods

Set(AlphaSources, float)

public AlphaComponent Set(AlphaSources source, float amount)

Parameters
source AlphaSources
amount float

Returns
AlphaComponent

Get(AlphaSources)

public float Get(AlphaSources source)

Parameters
source AlphaSources

Returns
float