Class PatternLightStyle
Namespace: ValveResourceFormat.Renderer.SceneEnvironment
Assembly: Renderer.dll
Letter pattern style of older lights, from a for dark through m for normal to z.
csharp
public sealed class PatternLightStyle : LightStyleInheritance
object ← LightStyle ← PatternLightStyle
Inherited Members
LightStyle.Duration, LightStyle.Events, LightStyle.GetBrightness(float)
Constructors
PatternLightStyle(string)
Initializes a style from its letters.
csharp
public PatternLightStyle(string pattern)Parameters
pattern string
Properties
Duration
Gets the length of one loop in seconds.
csharp
public override float Duration { get; }Property Value
float
Pattern
Gets the letters stepped through.
csharp
public string Pattern { get; }Property Value
string
Methods
FromAppearance(int)
Gets a numbered appearance, or null for normal and unknown numbers.
csharp
public static PatternLightStyle? FromAppearance(int appearance)Parameters
appearance int
Returns
GetBrightness(float)
Gets the brightness multiplier at a time between zero and LightStyle.Duration.
csharp
public override float GetBrightness(float time)Parameters
time float
Returns
float

