mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Updated Brushes (markdown)
parent
097bc340e8
commit
e4c2f237e0
12
Brushes.md
12
Brushes.md
@ -3,6 +3,12 @@ For more info on how brushes are drawn, check out [WPF LinearGradientBrush](http
|
|||||||
|
|
||||||
**Note:** To actually draw the brushes, see the [Drawing](https://github.com/SpoinkyNL/Artemis/wiki/Drawing) section.
|
**Note:** To actually draw the brushes, see the [Drawing](https://github.com/SpoinkyNL/Artemis/wiki/Drawing) section.
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
* [GetColor](https://github.com/SpoinkyNL/Artemis/wiki/brushes#getcolor)
|
||||||
|
* [GetRandomColor](https://github.com/SpoinkyNL/Artemis/wiki/brushes#getrandomcolor)
|
||||||
|
* [GetSolidColorBrush](https://github.com/SpoinkyNL/Artemis/wiki/brushes#getsolidcolorbrush)
|
||||||
|
* [GetLinearGradientBrush](https://github.com/SpoinkyNL/Artemis/wiki/brushes#getlineargradientbrush)
|
||||||
|
* [GetRadialGradientBrush](https://github.com/SpoinkyNL/Artemis/wiki/brushes#getradialgradientbrush)
|
||||||
## Functions
|
## Functions
|
||||||
### GetColor
|
### GetColor
|
||||||
Creates a color using the given variables.
|
Creates a color using the given variables.
|
||||||
@ -56,12 +62,13 @@ local redBrush = Brushes.GetSolidColorBrush(redColor);
|
|||||||
#### Result:
|
#### Result:
|
||||||
Drawing the first brush would look like this:
|
Drawing the first brush would look like this:
|
||||||

|

|
||||||
|
|
||||||
---
|
---
|
||||||
### GetLinearGradientBrush
|
### GetLinearGradientBrush
|
||||||
Returns a brush with a linear gradient
|
Returns a brush with a linear gradient
|
||||||
#### Syntax:
|
#### Syntax:
|
||||||
```lua
|
```lua
|
||||||
brush GetSolidColorBrush(table gradientColors, [double startX, double startY, double endX, double endY]);
|
brush GetLinearGradientBrush(table gradientColors, [double startX, double startY, double endX, double endY]);
|
||||||
```
|
```
|
||||||
##### Required arguments
|
##### Required arguments
|
||||||
- **gradientColors:** A table using colors as keys and doubles as offsets
|
- **gradientColors:** A table using colors as keys and doubles as offsets
|
||||||
@ -95,12 +102,13 @@ Drawing the first brush would look like this:
|
|||||||

|

|
||||||
Drawing the second brush would look like this:
|
Drawing the second brush would look like this:
|
||||||

|

|
||||||
|
|
||||||
---
|
---
|
||||||
### GetRadialGradientBrush
|
### GetRadialGradientBrush
|
||||||
Returns a brush with a radial gradient
|
Returns a brush with a radial gradient
|
||||||
#### Syntax:
|
#### Syntax:
|
||||||
```lua
|
```lua
|
||||||
brush GetSolidColorBrush(table gradientColors, [double centerX, double centerY, double originX, double originY]);
|
brush GetRadialGradientBrush(table gradientColors, [double centerX, double centerY, double originX, double originY]);
|
||||||
```
|
```
|
||||||
##### Required arguments
|
##### Required arguments
|
||||||
- **gradientColors:** A table using colors as keys and doubles as offsets
|
- **gradientColors:** A table using colors as keys and doubles as offsets
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user