MGL 2.0
Help file
List of functions
mgl.circle
mgl.copyrect
mgl.drawtext
mgl.ellipse
mgl.fillellipse
mgl.fillrect
mgl.floodfillin
mgl.floodfillout
mgl.getpixel
mgl.line
mgl.loadfont
mgl.pasterect
mgl.putpixel
mgl.rectangle
mgl.scanhorz
mgl.scanvert
mgl.setcliprect
mgl.styledline
mgl.textwidth
mgl.uni
Draws a circle at coordinates (x,y) with specified radius and type
Uses midpoint circle algoritm
Copies a rectangle between points (x1,y1) and (x2,y2)
It will copy ALL properties of particles if f is nonzero
returns data, which can be pasted by mgl.pasterect
Draws specified text at coordinates (x,y)
Uses 2-byte encoding, should be coded with mgl.uni
Uses specified type and font (loaded with mgl.loadfont)
param is binary coded this way:
alignment: 0=left, 1=center, 2=right
if italic, add 4
if bold, add 8
if underlined, add 16
if striked, add 32
Draws an ellipse at (x,y) with specified horizontal and vertical radiuses and type
Uses modified midpoint circle algoritm
Draws a filled ellipse at (x,y) with specified horizontal and vertical radiuses and type
Draws a filled rectangle between points (x1,y1) and (x2,y2) using specified type
Starts filling a shape from coordinates (x,y) until reaches a border colored other way
Starts filling a shape from coordinates (x,y) until reaches a border with specified color
border color should be specified as numeric
gets color of pixel at (x,y)
returns number
Draws a line between coordinates (x1,y1) and (x2,y2) using specified type
Loads a font from file with specified filename.
TODO: write font file format here
Pastes a rectangle copied with mgl.copyrect at coordinates (x,y)
Data is an array returned by mgl.copyrect
Draws a pixel at coordinates (x,y)
Replaces if there is something
Draws a rectangle between points (x1,y1) and (x2,y2) using specified type
Edits a horizontal line of rectangle stored in data
Replaces yth line of it with array
Edits a vertical line of rectangle stored in data
Replaces xth column of it with array
Sets clipping rectangle
Any pixel outside of it wont be drawn
Draws styled line between (x1,y1) and (x2,y2) with specified type
style is just an array of ones and zeros which is used as pattern
style.length should contain length of pattern
Returns width of specified text if drawn with specified font and params
For more info see mgl.drawtext
Returns 2-byte encoded string based on specified text
Used for mgl.drawtext
Done in academic SGML style
Используются технологии
uCoz