1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Updated Drawing (markdown)

Robert Beekman 2017-03-21 18:26:02 +01:00
parent 40f2f136d2
commit 1cf2a087d5

@ -1,5 +1,5 @@
The Drawing variable lets you draw brushes to the keyboard in different shapes.
To get the Drawing variable you need to subscribe to the [ProfileDrawing](https://github.com/SpoinkyNL/Artemis/wiki/LUA-Events#profiledrawing) event, as shown in the examples paired with each funtion.
To get the Drawing variable you need to subscribe to the [DeviceDrawing](https://github.com/SpoinkyNL/Artemis/wiki/LUA-Events#devicedrawing) event, as shown in the examples paired with each funtion.
## Overview
* [DrawEllipse](https://github.com/SpoinkyNL/Artemis/wiki/Drawing#drawellipse)
@ -33,7 +33,7 @@ function drawHandler(profile, eventArgs)
end
-- Subscribe to the event AFTER defining the function which must be subscribed.
Events.ProfileDrawing.add(drawHandler);
Events.DeviceDrawing.add(drawHandler);
```
#### Result:
Drawing the ellipse would look like this:
@ -65,7 +65,7 @@ function drawHandler(profile, eventArgs)
end
-- Subscribe to the event AFTER defining the function which must be subscribed.
Events.ProfileDrawing.add(drawHandler);
Events.DeviceDrawing.add(drawHandler);
```
#### Result:
Drawing the line would look like this:
@ -97,7 +97,7 @@ function drawHandler(profile, eventArgs)
end
-- Subscribe to the event AFTER defining the function which must be subscribed.
Events.ProfileDrawing.add(drawHandler);
Events.DeviceDrawing.add(drawHandler);
```
#### Result:
Drawing the rectangle would look like this:
@ -132,7 +132,7 @@ function drawHandler(profile, eventArgs)
end
-- Subscribe to the event AFTER defining the function which must be subscribed.
Events.ProfileDrawing.add(drawHandler);
Events.DeviceDrawing.add(drawHandler);
```
#### Result:
Drawing the text would look like this: