Table of Contents

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

T

The type of brush properties

Inheritance
PerLedLayerBrush<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

led ArtemisLed

The LED that will receive the color

renderPoint SKPoint

The point at which the color is located

Returns

SKColor

The color the LED will receive