mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Updated Drawing (markdown)
parent
b1a7921a71
commit
bd60893084
@ -52,6 +52,7 @@ DrawLine(brush brush, double startX, double startY, double endX, double endY, do
|
|||||||
- **startY:** The Y-position of the starting point of the line
|
- **startY:** The Y-position of the starting point of the line
|
||||||
- **endX:** The X-position of the end point of the line
|
- **endX:** The X-position of the end point of the line
|
||||||
- **endY:** The Y-position of the end point of the line
|
- **endY:** The Y-position of the end point of the line
|
||||||
|
- **thickness:** The thickness of the line
|
||||||
|
|
||||||
#### Example:
|
#### Example:
|
||||||
```lua
|
```lua
|
||||||
@ -61,7 +62,7 @@ local redBrush = Brushes.GetSolidColorBrush(Brushes.GetColor(255, 255, 0, 0));
|
|||||||
-- This function will be called after every profile draw.
|
-- This function will be called after every profile draw.
|
||||||
function drawHandler(profile, eventArgs)
|
function drawHandler(profile, eventArgs)
|
||||||
-- Draw a line from the top left to the bottom left
|
-- Draw a line from the top left to the bottom left
|
||||||
eventArgs.Drawing.DrawLine(redBrush, 0, 0, 5, 5);
|
eventArgs.Drawing.DrawLine(redBrush, 0, 0, 5, 5, 1);
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Subscribe to the event AFTER defining the function which must be subscribed.
|
-- Subscribe to the event AFTER defining the function which must be subscribed.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user