Skip to content

Commit b7a44e8

Browse files
committed
added clearscreen to docs
1 parent 7ab276c commit b7a44e8

1 file changed

Lines changed: 36 additions & 1 deletion

File tree

docs/ScreenFunctions.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,48 @@ Running this creates a window. Simple as that. Before you run this command, you'
1111
## Window Parameters (X)
1212

1313
````
14-
windowSize 1280,720;
14+
windowSize 255,255;
1515
windowTitle "Window Name";
1616
window; //Only open the window AFTER the parameters are set. If not, the commands won't do anything.
1717
````
1818

1919
The window paremeters should be pretty self explanatory, but `windowSize` sets the dimensions of the window and `WindowTitle` sets the window title.
2020

21+
(Do note the max size for a window is 255.)
2122

23+
## Drawing Pixels (X)
24+
25+
````
26+
pixel x,y,r,g,b;
27+
````
28+
Displays a pixel at x,y with colors r,g,b.
29+
30+
For example, this code below shows a red at the center of the screen.
31+
32+
````
33+
windowSize 100,100
34+
window;
35+
36+
pixel 50,50,255,0,0;
37+
````
38+
39+
## Clearing the Screen (X)
40+
41+
````
42+
clearScreen r,g,b;
43+
````
44+
45+
Clears screen with r,g,b color.
46+
47+
The code below will never display the `pixel` command because of the clear command.
48+
49+
````
50+
windowSize 100,100;
51+
windowTitle Clear Test;
52+
window;
53+
54+
pixel 50,50,255,0,0; //This pixel will never be shown.
55+
clearScreen 0,0,0;
56+
````
2257

2358
[< Previous Page](functions.html) | [Next Page >](advanced.html)

0 commit comments

Comments
 (0)