|
FreeJ scripting | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--Layer | +--GeometryLayer
The Geometry Layer lets you draw geometrical forms and
shapes on its surface, as a vectorial drawing tool for programmers.
This layer is well optimized for speed and good rendering.
Defined in GeometryLayer.js
Author: Andreas Schiffler (SDL_gfx), Jaromil
Constructor Summary | |
GeometryLayer()
The Geometry Layer constructor is used to create new instances of this layer |
Method Summary | |
void
|
aacircle(<int> x, <int> y, <int> radius)
Draw a smoothed circle given the coordinate of it center and its radius. |
void
|
aaellipse(<int> x, <int> y, <int> r_x, <int> r_y)
Draw an smoothed ellipse. |
void
|
aaline(<int> x1, <int> y1, <int> x2, <int> y2)
Draw a smoothed line between two vertex. |
void
|
aatrigon()
Draw a smoothed triangle. |
void
|
circle(<int> x, <int> y, <int> radius)
Draw a circle given the coordinate of it center and its radius. |
void
|
circle_fill(<int> x, <int> y, <int> radius)
Draw a filled circle given the coordinate of it center and its radius. |
void
|
clear()
Clears all the layer with the currently selected color |
void
|
color()
Set the current color to a new value. |
void
|
ellipse(<int> x, <int> y, <int> r_x, <int> r_y)
Draw an ellipse. |
void
|
ellipse_fill(<int> x, <int> y, <int> r_x, <int> r_y)
Draw a filled ellipse. |
void
|
hline(<int> x1,<int> x2,<int> y)
Draw an horizontal line from position x1,y tracing until x2 position. |
void
|
line(<int> x1, <int> y1, <int> x2, <int> y2)
Draw a line between two vertex. |
void
|
pie(<int> x, <int> y, <int> radius, <int> start, <int> end)
Draw a pie. |
void
|
pie_fill(<int> x, <int> y, <int> radius, <int> start, <int> end)
Draw a filled pie. |
void
|
pixel(<int> x, <int> y)
Draw a pixel at x,y position with currently selected color. |
void
|
rectangle(<int> x1, <int> y1, <int> x2, <int> y2)
Draw a rectangle. |
void
|
rectangle_fill(<int> x1, <int> y1, <int> x2, <int> y2)
Draw a rectangle filled with currently selected color |
void
|
trigon()
Draw a triangle. |
void
|
trigon_fill()
Draw a filled triangle. |
void
|
vline(<int> x,<int> y1,<int> y2)
Draw an vertical line from position x,y1 tracing until y2 position. |
Methods inherited from class Layer |
activate, deactivate, up, down, move, get_name, get_filename, set_blit, get_blit, set_blit_value, get_blit_value, set_position, slide_position, get_x_position, get_y_position, get_width, get_height, add_filter, rem_filter, rotate, zoom, spin, list_filters
|
Constructor Detail |
GeometryLayer()
Method Detail |
void aacircle(<int> x, <int> y, <int> radius)
x
- horizontal position of the center
y
- vertical position of the center
radius
- lenght in pixels
void aaellipse(<int> x, <int> y, <int> r_x, <int> r_y)
x
- horizontal position of the center
y
- vertical position of the center
r_x
- lenght of horizontal radius
r_y
- lenght of vertical radius
void aaline(<int> x1, <int> y1, <int> x2, <int> y2)
x1
- horizontal position of first vertex
y1
- vertical position of first vertex
x2
- horizontal position of second vertex
y2
- vertical position of second vertex
void aatrigon()
x1
- horizontal position of first vertex
y1
- vertical position of first vertex
x2
- horizontal position of second vertex
y2
- vertical position of second vertex
x3
- horizontal position of third vertex
y3
- vertical position of third vertex
void circle(<int> x, <int> y, <int> radius)
x
- horizontal position of the center
y
- vertical position of the center
radius
- lenght in pixels
void circle_fill(<int> x, <int> y, <int> radius)
x
- horizontal position of the center
y
- vertical position of the center
radius
- lenght in pixels
void clear()
void color()
hex_color
- hexadecimal value in RGB format (or more arguments...)
void ellipse(<int> x, <int> y, <int> r_x, <int> r_y)
x
- horizontal position of the center
y
- vertical position of the center
r_x
- lenght of horizontal radius
r_y
- lenght of vertical radius
void ellipse_fill(<int> x, <int> y, <int> r_x, <int> r_y)
x
- horizontal position of the center
y
- vertical position of the center
r_x
- lenght of horizontal radius
r_y
- lenght of vertical radius
void hline(<int> x1,<int> x2,<int> y)
x1
- horizontal position at start of the line
x2
- horizontal position at end of the line
y
- vertical position of the line
void line(<int> x1, <int> y1, <int> x2, <int> y2)
x1
- horizontal position of first vertex
y1
- vertical position of first vertex
x2
- horizontal position of second vertex
y2
- vertical position of second vertex
void pie(<int> x, <int> y, <int> radius, <int> start, <int> end)
x
- horizontal position of the center
y
- vertical position of the center
radius
- lenght of radius
start
- degree (0-360)
end
- degree (0-360)
void pie_fill(<int> x, <int> y, <int> radius, <int> start, <int> end)
x
- horizontal position of the center
y
- vertical position of the center
radius
- lenght of radius
start
- degree (0-360)
end
- degree (0-360)
void pixel(<int> x, <int> y)
x
- horizontal position, from left to right
y
- vertical position, from up to down
void rectangle(<int> x1, <int> y1, <int> x2, <int> y2)
x1
- horizontal position of upper-left vertex
y1
- vertical position of upper-left vertex
x2
- horizontal position of lower-right vertex
y2
- vertical position of lower-right vertex
void rectangle_fill(<int> x1, <int> y1, <int> x2, <int> y2)
x1
- horizontal position of upper-left vertex
y1
- vertical position of upper-left vertex
x2
- horizontal position of lower-right vertex
y2
- vertical position of lower-right vertex
void trigon()
x1
- horizontal position of first vertex
y1
- vertical position of first vertex
x2
- horizontal position of second vertex
y2
- vertical position of second vertex
x3
- horizontal position of third vertex
y3
- vertical position of third vertex
void trigon_fill()
x1
- horizontal position of first vertex
y1
- vertical position of first vertex
x2
- horizontal position of second vertex
y2
- vertical position of second vertex
x3
- horizontal position of third vertex
y3
- vertical position of third vertex
void vline(<int> x,<int> y1,<int> y2)
x
- horizontal position of the line
y1
- vertical position at start of the line
y2
- vertical position at end of the line
|
FreeJ scripting | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |