1
0
mirror of https://github.com/DarthAffe/CUE.NET.git synced 2025-12-13 09:08:34 +00:00

Updated Understanding CUE.NET brushes (markdown)

DarthAffe 2017-11-17 19:41:50 +01:00
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.
> Adding a rainbow over the whole keyboard could look like this:
> ```C#
```C#
CueSDK.KeyboardSDK.Brush = (SolidColorBrush) Color.Black;
ILedGroup rainbowLeds = new ListLedGroup(CueSDK.KeyboardSDK, CueSDK.KeyboardSDK);
rainbowLeds.Brush = new LinearGradientBrush(new RainbowGradient());
CueSDK.KeyboardSDK.Update();
>```
```
### Configuring brushes
Every brush offers a basic set of options to customize it's look.