Class PerLedLayerBrush<T>
- Namespace
- Artemis.Core.LayerBrushes
- Assembly
- Artemis.Core.dll
Represents a brush that renders on a per-layer basis
public abstract class PerLedLayerBrush<T> : PropertiesLayerBrush<T>, IBreakableModel, IDisposable, IPluginFeatureDependent where T : LayerPropertyGroup, new()
Type Parameters
TThe type of brush properties
- Inheritance
-
objectCorePropertyChangedPerLedLayerBrush<T>
- Implements
- Inherited Members
Constructors
PerLedLayerBrush()
Creates a new instance of the PerLedLayerBrush<T> class
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.
public abstract SKColor GetColor(ArtemisLed led, SKPoint renderPoint)
Parameters
ledArtemisLedThe LED that will receive the color
renderPointSKPointThe point at which the color is located
Returns
- SKColor
The color the LED will receive