FreeJ scripting

Class GeometryLayer

Object
   |
   +--Layer
         |
         +--GeometryLayer

class GeometryLayer
extends Layer


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

GeometryLayer()

Method Detail

aacircle

void aacircle(<int> x, <int> y, <int> radius)

aaellipse

void aaellipse(<int> x, <int> y, <int> r_x, <int> r_y)

aaline

void aaline(<int> x1, <int> y1, <int> x2, <int> y2)

aatrigon

void aatrigon()

circle

void circle(<int> x, <int> y, <int> radius)

circle_fill

void circle_fill(<int> x, <int> y, <int> radius)

clear

void clear()

color

void color()

ellipse

void ellipse(<int> x, <int> y, <int> r_x, <int> r_y)

ellipse_fill

void ellipse_fill(<int> x, <int> y, <int> r_x, <int> r_y)

hline

void hline(<int> x1,<int> x2,<int> y)

line

void line(<int> x1, <int> y1, <int> x2, <int> y2)

pie

void pie(<int> x, <int> y, <int> radius, <int> start, <int> end)

pie_fill

void pie_fill(<int> x, <int> y, <int> radius, <int> start, <int> end)

pixel

void pixel(<int> x, <int> y)

rectangle

void rectangle(<int> x1, <int> y1, <int> x2, <int> y2)

rectangle_fill

void rectangle_fill(<int> x1, <int> y1, <int> x2, <int> y2)

trigon

void trigon()

trigon_fill

void trigon_fill()

vline

void vline(<int> x,<int> y1,<int> y2)

FreeJ scripting

| FreeJ scripting documentation is Copyleft (C) 2000 - 2007 dyne.org foundation. Verbatim copying and distribution of this entire page is permitted in any medium, provided this notice is preserved.
Send inquiries & questions to dyne.org's hackers.
Documentation generated by JSDoc on Thu May 29 20:56:52 2008