ARSA Language  2.8
(Encryption, GPU and Web 3.0)
primitives.h
Go to the documentation of this file.
1 
38 class draw
39 {
40 public:
42 
47  void pixel(int x, int y, int thickness = 1, int r = 255, int g = 255, int b = 255, int a = 255);
48 
50 
57  void line(int x1, int y1, int x2, int y2, int thickness = 1, int r = 255, int g = 255, int b = 255, int a = 255);
58 
60 
66  void rect(int x1, int y1, int x2, int y2, int thickness = 1, bool fill = false, int r = 255, int g = 255, int b = 255, int a = 255);
67 
69 
86  void poly(int cx, int cy, int radius = 10, int vertexCount = 10, bool fill = false, int start_percent = 0, int end_percent = 100, const char* texture_name = 0, int r = 255, int g = 255, int b = 255, int a = 255);
87 
89 
94  void circle(int cx, int cy, int radius = 10, int r = 255, int g = 255, int b = 255, int a = 255);
95 
97 
103  void cross(int cx, int cy, int length = 5, int thickness = 1, int r = 255, int g = 255, int b = 255, int a = 255);
104 
106 
112  void plus(int cx, int cy, int length = 5, int thickness = 1, int r = 255, int g = 255, int b = 255, int a = 255);
113 };
void line(int x1, int y1, int x2, int y2, int thickness=1, int r=255, int g=255, int b=255, int a=255)
Draws a 2d line.
void circle(int cx, int cy, int radius=10, int r=255, int g=255, int b=255, int a=255)
Draws a non filled 2d circle. this's macro of poly()
void rect(int x1, int y1, int x2, int y2, int thickness=1, bool fill=false, int r=255, int g=255, int b=255, int a=255)
Draws a 2d rectangle.
void plus(int cx, int cy, int length=5, int thickness=1, int r=255, int g=255, int b=255, int a=255)
Draws a plus. this's macro of line()
r
rotation layer
Definition: builtin.h:39
void pixel(int x, int y, int thickness=1, int r=255, int g=255, int b=255, int a=255)
Draws a pixel.
void cross(int cx, int cy, int length=5, int thickness=1, int r=255, int g=255, int b=255, int a=255)
Draws a cross. this's macro of line()
void poly(int cx, int cy, int radius=10, int vertexCount=10, bool fill=false, int start_percent=0, int end_percent=100, const char *texture_name=0, int r=255, int g=255, int b=255, int a=255)
Draws a non filled concyclic regular 2d polygon.