Functions | |
NIL | draw.line (NUMBER x1, NUMBER y1, NUMBER x2, NUMBER y2, COLOR myColor) |
Draws a straight line between points x1,y1 and x2,y2. More... | |
NIL | draw.gradline (NUMBER x1, NUMBER y1, NUMBER x2, NUMBER y2, COLOR c1, COLOR c2) |
Draw a straight line between points x1, y1 and x2, y2 with gradient effect. More... | |
NIL | draw.rect (NUMBER x, NUMBER y, NUMBER w, NUMBER h, COLOR myColor) |
Draws an unfilled rectangle. More... | |
NIL | draw.fillrect (NUMBER x, NUMBER y, NUMBER w, NUMBER h, COLOR myColor) |
Draws a filled rectangle. More... | |
NIL | draw.gradrect (NUMBER x, NUMBER y, NUMBER w, NUMBER h, COLOR c1, COLOR c2, COLOR c3, COLOR c4) |
Draws a filled rectangle with custom gradient. More... | |
NIL | draw.gradrect (NUMBER x, NUMBER y, NUMBER w, NUMBER h, COLOR c1, COLOR c2, NUMBER mode) |
Draw a rectangle filled with a predefined gradient (5 possibilities). More... | |
NIL | draw.filltriangle (NUMBER x1, NUMBER y1, NUMBER x2, NUMBER y2, NUMBER x3, NUMBER y3, COLOR myColor) |
Draws a filled triangle. More... | |
NIL | draw.gradtriangle (NUMBER x1, NUMBER y1, NUMBER x2, NUMBER y2, NUMBER x3, NUMBER y3, COLOR c1, COLOR c2, COLOR c3) |
Draws a filled triangle with a gradient effect.. More... | |
NIL | draw.circle (NUMBER x, NUMBER y, NUMBER radius, COLOR myColor, NUMBER sections) |
Draw a circle unfilled. More... | |
NIL | draw.gradcircle (NUMBER x, NUMBER y, NUMBER radius, COLOR c1, COLOR c2, NUMBER sections) |
Draws a filled circle with gradient effect. More... | |
NIL | draw.circlesection (NUMBER x, NUMBER y, NUMBER radius, COLOR c, NUMBER mode) |
Draw a circle section. More... | |
NIL | draw.gradarc (NUMBER x, NUMBER y, NUMBER radius, COLOR c1, COLOR c2, NUMBER gradinitial, NUMBER gradfinal, NUMBER sections) |
Draw an arc with gradient effect. More... | |
NIL | draw.framearc (NUMBER x, NUMBER y, NUMBER radius, COLOR c, NUMBER gradinitial, NUMBER gradfinal, NUMBER sections) |
Draw an arc with edge and gradient effect. More... | |
Drawing basic forms.
NIL draw.line | ( | NUMBER | x1, |
NUMBER | y1, | ||
NUMBER | x2, | ||
NUMBER | y2, | ||
COLOR | myColor | ||
) |
Draws a straight line between points x1,y1 and x2,y2.
x1 | Coordinate X of the initial point. |
y1 | coordinate Y of the initial point. |
x2 | Coordinate X of the final point. |
y2 | Coordinate Y of the initial point. |
myColor | A color for draw the line. |
NIL draw.gradline | ( | NUMBER | x1, |
NUMBER | y1, | ||
NUMBER | x2, | ||
NUMBER | y2, | ||
COLOR | c1, | ||
COLOR | c2 | ||
) |
Draw a straight line between points x1, y1 and x2, y2 with gradient effect.
x1 | Coordinate X of the initial point. |
y1 | coordinate Y of the initial point. |
x2 | Coordinate X of the final point. |
y2 | Coordinate Y of the initial point. |
c1 | First color of the gradient. |
c2 | Second color of the gradient. |
NIL draw.rect | ( | NUMBER | x, |
NUMBER | y, | ||
NUMBER | w, | ||
NUMBER | h, | ||
COLOR | myColor | ||
) |
Draws an unfilled rectangle.
x | Coordinate X of the top left corner. |
y | Coordinate Y of the top left corner. |
w | Width. |
h | Height. |
myColor | A color for draw the rectangle. |
NIL draw.fillrect | ( | NUMBER | x, |
NUMBER | y, | ||
NUMBER | w, | ||
NUMBER | h, | ||
COLOR | myColor | ||
) |
Draws a filled rectangle.
x | Coordinate X of the top left corner. |
y | Coordinate Y of the top left corner. |
w | Width. |
h | Height. |
myColor | A color for draw and fill the rectangle. |
NIL draw.gradrect | ( | NUMBER | x, |
NUMBER | y, | ||
NUMBER | w, | ||
NUMBER | h, | ||
COLOR | c1, | ||
COLOR | c2, | ||
COLOR | c3, | ||
COLOR | c4 | ||
) |
Draws a filled rectangle with custom gradient.
x | Coordinate X of the top left corner. |
y | Coordinate Y of the top left corner. |
w | Width. |
h | Height. |
c1 | Top left corner color. |
c2 | Top right corner color. |
c3 | Bottom left corner color. |
c4 | Bottom right corner color. |
NIL draw.gradrect | ( | NUMBER | x, |
NUMBER | y, | ||
NUMBER | w, | ||
NUMBER | h, | ||
COLOR | c1, | ||
COLOR | c2, | ||
NUMBER | mode | ||
) |
Draw a rectangle filled with a predefined gradient (5 possibilities).
x | Coordinate X of the top left corner. |
y | Coordinate Y of the top left corner. |
w | Width. |
h | Height. |
c1 | First color of the gradient. |
c2 | Second color of the gradient. |
mode | Gradient type, some of those constants (numeric value in parenthesis):
|
NIL draw.filltriangle | ( | NUMBER | x1, |
NUMBER | y1, | ||
NUMBER | x2, | ||
NUMBER | y2, | ||
NUMBER | x3, | ||
NUMBER | y3, | ||
COLOR | myColor | ||
) |
Draws a filled triangle.
x1 | Coordinate X of point 1 of the triangle. |
y1 | Coordinate Y of point 1 of the triangle. |
x2 | Coordinate X of point 2 of the triangle. |
y2 | Coordinate Y of point 2 of the triangle. |
x3 | Coordinate X of point 3 of the triangle. |
y3 | Coordinate Y of point 3 of the triangle. |
myColor | A color to draw and fill the triangle. |
NIL draw.gradtriangle | ( | NUMBER | x1, |
NUMBER | y1, | ||
NUMBER | x2, | ||
NUMBER | y2, | ||
NUMBER | x3, | ||
NUMBER | y3, | ||
COLOR | c1, | ||
COLOR | c2, | ||
COLOR | c3 | ||
) |
Draws a filled triangle with a gradient effect..
x1 | Coordinate X of point 1 of the triangle. |
y1 | Coordinate Y of point 1 of the triangle. |
x2 | Coordinate X of point 2 of the triangle. |
y2 | Coordinate Y of point 2 of the triangle. |
x3 | Coordinate X of point 3 of the triangle. |
y3 | Coordinate Y of point 3 of the triangle. |
c1 | First color of the gradient. |
c2 | Second color of the gradient. |
c3 | Third color of the gradient. |
NIL draw.circle | ( | NUMBER | x, |
NUMBER | y, | ||
NUMBER | radius, | ||
COLOR | myColor, | ||
NUMBER | sections | ||
) |
Draw a circle unfilled.
x | Coordinate X of circle origin. |
y | Coordinate Y of circle origin. |
radius | Circle radius. |
myColor | A color to draw the circle. |
sections | Number of triangles used to estimate a circle, a common value is 30. |
NIL draw.gradcircle | ( | NUMBER | x, |
NUMBER | y, | ||
NUMBER | radius, | ||
COLOR | c1, | ||
COLOR | c2, | ||
NUMBER | sections | ||
) |
Draws a filled circle with gradient effect.
x | Coordinate X of circle origin. |
y | Coordinate Y of circle origin. |
radius | Circle radius. |
c1 | First color of the gradient. |
c2 | Second color of the gradient. |
sections | Number of triangles used to estimate a circle, a common value is 30. |
NIL draw.circlesection | ( | NUMBER | x, |
NUMBER | y, | ||
NUMBER | radius, | ||
COLOR | c, | ||
NUMBER | mode | ||
) |
Draw a circle section.
x | Coordinate X of circle origin. |
y | Coordinate Y of circle origin. |
radius | Circle radius. |
c | A color to draw the circle section. |
mode | number indicating the circle section to draw:
|
NIL draw.gradarc | ( | NUMBER | x, |
NUMBER | y, | ||
NUMBER | radius, | ||
COLOR | c1, | ||
COLOR | c2, | ||
NUMBER | gradinitial, | ||
NUMBER | gradfinal, | ||
NUMBER | sections | ||
) |
Draw an arc with gradient effect.
x | Coordinate X of circle origin. |
y | Coordinate Y of circle origin. |
radius | Circle radius. |
c1 | First color of the gradient. |
c2 | Second color of the gradient. |
gradinitial | Initial degrees to draw an arc. |
gradfinal | Final degrees to draw an arc. |
sections | Number of triangles used to estimate a circle, a common value is 30. |
NIL draw.framearc | ( | NUMBER | x, |
NUMBER | y, | ||
NUMBER | radius, | ||
COLOR | c, | ||
NUMBER | gradinitial, | ||
NUMBER | gradfinal, | ||
NUMBER | sections | ||
) |
Draw an arc with edge and gradient effect.
x | Coordinate X of circle origin. |
y | Coordinate Y of circle origin. |
radius | Circle radius. |
c | Color of the gradient. |
gradinitial | Initial degrees to draw an arc. |
gradfinal | Final degrees to draw an arc. |
sections | Number of triangles used to estimate a circle, a common value is 30. |