Artemis Artemis
Artemis Artemis

Search Results for

    Class PerLedLayerBrush<T>

    Represents a brush that renders on a per-layer basis

    Inheritance
    object
    CorePropertyChanged
    BreakableModel
    BaseLayerBrush
    PropertiesLayerBrush<T>
    PerLedLayerBrush<T>
    Implements
    IBreakableModel
    IDisposable
    Inherited Members
    PropertiesLayerBrush<T>.PropertiesInitialized
    PropertiesLayerBrush<T>.BaseProperties
    PropertiesLayerBrush<T>.Properties
    BaseLayerBrush.EnableLayerBrush()
    BaseLayerBrush.DisableLayerBrush()
    BaseLayerBrush.Update(double)
    BaseLayerBrush.Dispose(bool)
    BaseLayerBrush.Dispose()
    BaseLayerBrush.Layer
    BaseLayerBrush.LayerBrushEntity
    BaseLayerBrush.Descriptor
    BaseLayerBrush.ConfigurationDialog
    BaseLayerBrush.BrushType
    BaseLayerBrush.ProviderId
    BaseLayerBrush.Presets
    BaseLayerBrush.DefaultPreset
    BaseLayerBrush.Enabled
    BaseLayerBrush.SupportsTransformation
    BaseLayerBrush.BrokenDisplayName
    BreakableModel.OnBrokenStateChanged()
    BreakableModel.TryOrBreak(Action, string)
    BreakableModel.SetBrokenState(string, Exception)
    BreakableModel.ClearBrokenState(string)
    BreakableModel.GetBrokenHierarchy()
    BreakableModel.BrokenState
    BreakableModel.BrokenStateException
    BreakableModel.BrokenStateChanged
    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

    Implements

    IBreakableModel
    IDisposable
    Content is available under the PolyForm Noncommercial License, by Artemis RGB.