Struct StaticConfiguration
Creates an evolving static 'noise' effect
Inherited Members
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 { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Intensity
Interpolation between pre- effect and post-effect pixels (0 to 1)
Declaration
public float Intensity { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| float |
TexelScaler
The size of each static noise 'pixel'
Declaration
public float TexelScaler { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| float |
TimeSpeed
How quickly the static noise evolves over time
Declaration
public float TimeSpeed { readonly get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
PreSet(float)
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 |
|---|---|---|
| float | amount | 0 to 1 intensity of effect |
Returns
| Type | Description |
|---|---|
| StaticConfiguration |