Treehopper C# API
Apa102.Led Class Reference

Represents a single APA102 LED's value More...

Inherits IRgbLed.

Public Member Functions

void SetRgb (float red, float green, float blue)
 Set the RGB value of this RGB LED More...
 
void SetHsl (float hue, float saturation, float luminance)
 Set the hue, saturation, and luminance of this RGB LED More...
 
void SetColor (Color color)
 Set the color of the RGB LED More...
 

Properties

float RedGain [get, set]
 The red gain to apply More...
 
float GreenGain [get, set]
 The green gain to apply More...
 
float BlueGain [get, set]
 The blue gain to apply More...
 

Detailed Description

Represents a single APA102 LED's value

Member Function Documentation

◆ SetRgb()

void SetRgb ( float  red,
float  green,
float  blue 
)

Set the RGB value of this RGB LED

Parameters
redThe red intensity, from 0-255
greenThe green intensity, from 0-255
blueThe blue intensity, from 0-255

◆ SetHsl()

void SetHsl ( float  hue,
float  saturation,
float  luminance 
)

Set the hue, saturation, and luminance of this RGB LED

Parameters
hueThe hue, from 0-360 degrees, of the desired color
saturationThe saturation, from 0-100, of the desired color
luminanceThe luminance, from 0-100, of the desired color

◆ SetColor()

void SetColor ( Color  color)

Set the color of the RGB LED

Parameters
colorThe desired color

Property Documentation

◆ RedGain

float RedGain
getset

The red gain to apply

◆ GreenGain

float GreenGain
getset

The green gain to apply

◆ BlueGain

float BlueGain
getset

The blue gain to apply


The documentation for this class was generated from the following file: