Class PerLedLayerBrush<T>
Represents a brush that renders on a per-layer basis
Inheritance
PerLedLayerBrush<T>
Inherited Members
Namespace: Artemis.Core.LayerBrushes
Assembly: Artemis.Core.dll
Syntax
public abstract class PerLedLayerBrush<T> : PropertiesLayerBrush<T>, IBreakableModel, IDisposable where T : LayerPropertyGroup, new()
Type Parameters
Name | Description |
---|---|
T | The type of brush properties |
Constructors
PerLedLayerBrush()
Creates a new instance of the PerLedLayerBrush<T> class
Declaration
protected PerLedLayerBrush()
Methods
GetColor(ArtemisLed, SKPoint)
The main method of rendering for this type of brush. Called once per frame for each LED in the layer
Note: Due to transformations, the render point may not match the position of the LED, always use the render point to determine where the color will go.
Declaration
public abstract SKColor GetColor(ArtemisLed led, SKPoint renderPoint)
Parameters
Type | Name | Description |
---|---|---|
ArtemisLed | led | The LED that will receive the color |
SKPoint | renderPoint | The point at which the color is located |
Returns
Type | Description |
---|---|
SKColor | The color the LED will receive |