Struct StaticConfiguration
Creates an evolving static 'noise' effect
Namespace: Yak2D
Assembly: Yak2D.Api.dll
Syntax
public struct StaticConfiguration
Properties
IgnoreTransparent
If false (0), transparent pixels will not be drawn over
Declaration
public int IgnoreTransparent { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Intensity
Interpolation between pre- effect and post-effect pixels (0 to 1)
Declaration
public float Intensity { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
TexelScaler
The size of each static noise 'pixel'
Declaration
public float TexelScaler { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
TimeSpeed
How quickly the static noise evolves over time
Declaration
public float TimeSpeed { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
PreSet(Single)
Returns a pre-set effect configuration scaled between 0 and 1 (uses 2.0 as texel scalar)
Declaration
public static StaticConfiguration PreSet(float amount)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | amount | 0 to 1 intensity of effect |
Returns
| Type | Description |
|---|---|
| StaticConfiguration |