mirror of
https://github.com/DarthAffe/CUE.NET.git
synced 2025-12-12 16:58:29 +00:00
Updated Linear Gradient Brush (markdown)
parent
a1dfe16212
commit
499c36f690
@ -2,7 +2,7 @@ The _LinearGradientBrush_ is one of the default brushes provided by CUE.NET.
|
||||
It's used to draw a gradient as a "line" inside a rectangle.
|
||||
|
||||
You are able to define a start and an end-point (both are inter- or extrapolated if needed) and the gradient which should be drawn on the virtual line between this points by either providing them as constructor-parameters or using the _StartPoint_-, _EndPoint_- and _Gradient_-Properties.
|
||||
If you don't set an gradient the brush will return transparent for every key.
|
||||
If you don't set an gradient the brush will return transparent for every LED.
|
||||
> The Start- and End-Point is given as the percentage from the top left corner.
|
||||
> new PointF(0f, 0f) will be top left, new PointF(0,5f, 0,5f) in the center and new PointF(1f, 1f) in the bottom right.
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user