Documention for imagIIne 1.11
All sections, [settings] [colors] and [functions] are mandatory
Comments should be preceeded with a semi-colon
Usage of various functions and settings outlined below
[settings]
colors=true
Default is 'true' unlimited colors
Set to 256 for transparency in IE
fewer colors means smaller file
width=200
width of image
height=200
height of image
background=white
Background color
trans=white
set transparent color for image
for Internet Explorer, only in 256 mode
src=http://url.png
Background image
rotate=0
Rotate image 0-360 degrees
quotes=http://url.txt
Plain text file to extract quotes from
Insert random quote by placing :rand in a text field.
lines=1
set thickness for non-filled elements
lines can also be used in "functions"
to switch sizes from one item to another
[colors]
Define multiple colors here, which can be used
by calling their name in various functions
red=fff,0
name=hex,transparency
transparency is 0 - 127
[functions]
Define various drawing and text functions here
will be processed in order / top to bottom = back to front
(items starting with f are filled otherwise just outlined)
px=x:y,color
define a single pixel
line=startX:startY,endX:endY,color
draw a line in any direction
text=font,color,size,angle,X:Y,text,wrap
insert a string of text at position X,Y
wrap is optional, will wrap at that width
The following variables may be used in fonts:
:rand Random line from "quotes" file
:date0 current date + GMT Offset
:time0 current time + GMT Offset
:@ Internet time
:ipaddr IP Address
:browser Browser UA String
elipse=x:y,width,height,color
draw an outlined elipse
felipse=x:y,width,height,color
draw a filled elipse
rect=x:y,x:y,color
draw an outlined box from x:y1 to x:y2
frect=x:y,x:y,color
draw a filled box
poly=color,x1:y1,x2:y2,x3:y3
draw a point to point polygon
(no limit to number of points)
fpoly=color,x1:y1,x2:y2,x3:y3
draw a filled point to point polygon
(no limit to number of points)
arc=x:y,width,height,start,end,color
draw an outlined partial circle
start and end points are degrees
farc=x:y,width,height,start,end,color
draw a filled partial circle
start and end points are degrees
sprite=x1:y1,w:h,x2:y2,w:h,angle,c:c,url
x1:y1 coordinates in 'sprite' image to start at
w:h size of copy area for grabbing sprite
x2:y2 coords to insert sprite in image
w:h final width/height of sprite (resized)
angle is degrees to rotate (buggy)
c:c:c is the palette index to use for background
and coords of pixel color to make transparent
url is sprite source
autosprite=x1:y1,w:h,x2:y2,w:h,angle,c:c,url
identical to sprite, except the image will be forced
to stay within the right/bottom bounds of the image
fill=x1:y1,color1,color2
fill=x1:y1,x2:y2,color2
starting at x1:y1, fill outward to bounds
set by color 1 with color2
Or if you don't know the color
starting at x1:y1 fill outward to bounds
set by x2:y2 with color2.
Like a coloring book where x1:y1
is the white and x2:y2 is a point on outline
fill inbetween.
-----------------------------
More functions added as requested/needed
To view the raw source of this documentation
http://theprawn.com/imagiine/commands.txt