mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-01-01 18:23:32 +00:00
Updated Drawing (markdown)
parent
40f2f136d2
commit
1cf2a087d5
10
Drawing.md
10
Drawing.md
@ -1,5 +1,5 @@
|
|||||||
The Drawing variable lets you draw brushes to the keyboard in different shapes.
|
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
|
## Overview
|
||||||
* [DrawEllipse](https://github.com/SpoinkyNL/Artemis/wiki/Drawing#drawellipse)
|
* [DrawEllipse](https://github.com/SpoinkyNL/Artemis/wiki/Drawing#drawellipse)
|
||||||
@ -33,7 +33,7 @@ function drawHandler(profile, eventArgs)
|
|||||||
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.
|
||||||
Events.ProfileDrawing.add(drawHandler);
|
Events.DeviceDrawing.add(drawHandler);
|
||||||
```
|
```
|
||||||
#### Result:
|
#### Result:
|
||||||
Drawing the ellipse would look like this:
|
Drawing the ellipse would look like this:
|
||||||
@ -65,7 +65,7 @@ function drawHandler(profile, eventArgs)
|
|||||||
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.
|
||||||
Events.ProfileDrawing.add(drawHandler);
|
Events.DeviceDrawing.add(drawHandler);
|
||||||
```
|
```
|
||||||
#### Result:
|
#### Result:
|
||||||
Drawing the line would look like this:
|
Drawing the line would look like this:
|
||||||
@ -97,7 +97,7 @@ function drawHandler(profile, eventArgs)
|
|||||||
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.
|
||||||
Events.ProfileDrawing.add(drawHandler);
|
Events.DeviceDrawing.add(drawHandler);
|
||||||
```
|
```
|
||||||
#### Result:
|
#### Result:
|
||||||
Drawing the rectangle would look like this:
|
Drawing the rectangle would look like this:
|
||||||
@ -132,7 +132,7 @@ function drawHandler(profile, eventArgs)
|
|||||||
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.
|
||||||
Events.ProfileDrawing.add(drawHandler);
|
Events.DeviceDrawing.add(drawHandler);
|
||||||
```
|
```
|
||||||
#### Result:
|
#### Result:
|
||||||
Drawing the text would look like this:
|
Drawing the text would look like this:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user