mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-13 09:08:34 +00:00
Updated Understanding CUE.NET brushes (markdown)
parent
f6cb4dcd7f
commit
eba7ab8eab
@ -25,12 +25,12 @@ myLedGroup.Brush = brush;
|
|||||||
|
|
||||||
> In most cases it's recommended to use the device-brush as an background and work on a ledgroups only, even if you want to color the whole device. Otherwise using transparency might cause some sort of color-bleeding.
|
> In most cases it's recommended to use the device-brush as an background and work on a ledgroups only, even if you want to color the whole device. Otherwise using transparency might cause some sort of color-bleeding.
|
||||||
> Adding a rainbow over the whole keyboard could look like this:
|
> Adding a rainbow over the whole keyboard could look like this:
|
||||||
> ```C#
|
```C#
|
||||||
CueSDK.KeyboardSDK.Brush = (SolidColorBrush) Color.Black;
|
CueSDK.KeyboardSDK.Brush = (SolidColorBrush) Color.Black;
|
||||||
ILedGroup rainbowLeds = new ListLedGroup(CueSDK.KeyboardSDK, CueSDK.KeyboardSDK);
|
ILedGroup rainbowLeds = new ListLedGroup(CueSDK.KeyboardSDK, CueSDK.KeyboardSDK);
|
||||||
rainbowLeds.Brush = new LinearGradientBrush(new RainbowGradient());
|
rainbowLeds.Brush = new LinearGradientBrush(new RainbowGradient());
|
||||||
CueSDK.KeyboardSDK.Update();
|
CueSDK.KeyboardSDK.Update();
|
||||||
>```
|
```
|
||||||
|
|
||||||
### Configuring brushes
|
### Configuring brushes
|
||||||
Every brush offers a basic set of options to customize it's look.
|
Every brush offers a basic set of options to customize it's look.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user