|
|
|
|
PaintletScript Tags Each time a Paintlet operation is performed, its corresponding PaintletScript XML tag is displayed, in an abbreviated style. PaintletScript files can be created easily with the built-in psl editor. Below is a complete list of PaintletScript psl tags. |
<PAINTLET>
|
||||||||||||||||||||||||||||||||||||||||||||||||
| The top-level tag in PaintletScript. | ||||||||||||||||||||||||||||||||||||||||||||||||
<HEAD>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
The header tag. Contains descriptive information that will be displayed
to the user just prior to running the script. Encloses the title,
author, date and description tags. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<TITLE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
| The script title tag. Encloses text. Valid within the HEAD tag. | ||||||||||||||||||||||||||||||||||||||||||||||||
<AUTHOR>
|
||||||||||||||||||||||||||||||||||||||||||||||||
| The script author tag. Encloses text. Valid within the HEAD tag. | ||||||||||||||||||||||||||||||||||||||||||||||||
<DATE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
The date tag. Script creation date. Valid within the HEAD tag. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<DESCRIPTION>
|
||||||||||||||||||||||||||||||||||||||||||||||||
| The description tag. Encloses text. Valid within the HEAD tag. Provides a useful information about the script that will be displayed to the user prior to running the script. | ||||||||||||||||||||||||||||||||||||||||||||||||
<CONTEXT>
|
||||||||||||||||||||||||||||||||||||||||||||||||
| The context tag. Supplies the initial paint and brush settings before a script is run. Encloses paint and brush tags. Normally placed just after the head tag. | ||||||||||||||||||||||||||||||||||||||||||||||||
<PAINT>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Specifies the paint attributes that affect graphic rendering. parameters
Two examples: color=255,0,0 and color=red
|
||||||||||||||||||||||||||||||||||||||||||||||||
<BRUSH>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Specifies the attributres of the pen used to draw shapes. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<FREEHAND>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
The freeform painting tool. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<LINE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
The line painting tool. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<ELLIPSE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
The ellipse painting tool. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<CURVE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
The curve painting tool. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<RECTANGLE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
The rectangle painting tool. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<BLEND>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
A soft-blending paint tool. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<SPRAY>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
A spray paint tool. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<ERASE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
A paint eraser tool. Draws solid circles with background color. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<BACKGROUND>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Repaints the entire canvas in the current color. |
||||||||||||||||||||||||||||||||||||||||||||||||
<UNDO>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Undo the last paint operation. |
||||||||||||||||||||||||||||||||||||||||||||||||
<IMAGE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Paint an image on the canvas. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<TEXT>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Opening text tag. Encloses text attribute tags and text to be drawn. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<FONT>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
The text font attribute. Enclosed by text tag. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<TEXTPAINT>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
The text paint attribute. Enclosed by text tag. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<TEXTLAYOUT>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Spatial arrangement of the text. Enclosed by text tag. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<TEXTHILITE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Text hilite attribute. Enclosed by text tag. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<TEXTSPECIAL>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Specifies a special text rendering style. Enclosed by text tag. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
</TEXT>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
The enclosing text tag. |
||||||||||||||||||||||||||||||||||||||||||||||||
<FILTER>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Specifies a filter operation on the canvas. x,y,width,height are optional. parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<COLORMAP>
Opening tag for a colorize operation. Contains tones and distribution
tags.
|
||||||||||||||||||||||||||||||||||||||||||||||||
<TONES>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Set of nine colors that define the color mapping.
parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<DISTRIBUTION>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Weight given to tones in the color mapping.
parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
</COLORMAP>
Closing tag for a color mapping.
tags.
|
||||||||||||||||||||||||||||||||||||||||||||||||
<SPOTLIGHT>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Add a spotlight to the canvas.
parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<EDIT>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Standard cut, copy and paste functions applied to the canvas.
parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<CANVAS>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Sets the area of the paintable canvas.
parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<PAUSE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Pause time between executing paint operations.
parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
<END/>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Signals end of script. A The End. message is displayed.
|
||||||||||||||||||||||||||||||||||||||||||||||||
<END>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Opening end tag. Signals end of script. Encloses text to be displayed.
|
||||||||||||||||||||||||||||||||||||||||||||||||
</END>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Closing end tag. Displays message with enclosed text.
|
||||||||||||||||||||||||||||||||||||||||||||||||
<VARIABLE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Variable declaration and initialization. Remains in scope until script exits.
parameters the following function values may also be used for assignment:
notes: rand(x) will return a random integer between 0 and x. the rand() function will return a float between 0.0 and 1.0 x and y function arguments may be variables or PaintletScript constants. casting from (float to int) or (int to float) is implicit. loss of precision may result. examples: value=eval(x+10) where x is a previously defined variable value=eval(canvaswidth/2) where canvaswidth is a PaintletScript constant value=rand(255) assigns a random between 0 and 255 examples: action=++ increments the variable value by 1. action=+=5 adds 5 to the current variable value. action=-=4 substracts 4 from the current value. |
||||||||||||||||||||||||||||||||||||||||||||||||
<LOOP>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Loop opening tag. Executes enclosed tags in a loop.
parameters
examples: |
||||||||||||||||||||||||||||||||||||||||||||||||
</LOOP>
|
||||||||||||||||||||||||||||||||||||||||||||||||
| Loop closing tag. | ||||||||||||||||||||||||||||||||||||||||||||||||
<IF>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
An if conditional opening tag. Executes enclosed tags if conditional bex evaluates true.
parameters
example: |
||||||||||||||||||||||||||||||||||||||||||||||||
</IF>
|
||||||||||||||||||||||||||||||||||||||||||||||||
| An if conditional closing tag. | ||||||||||||||||||||||||||||||||||||||||||||||||
<ELSEIF>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
An elseif conditional opening tag. Executes enclosed tags if conditional bex evaluates true
and preceeding if and/or elseif tags were false. An if tag
must precede this tag.
parameters
example: |
||||||||||||||||||||||||||||||||||||||||||||||||
</ELSEIF>
|
||||||||||||||||||||||||||||||||||||||||||||||||
| An elseif conditional closing tag. | ||||||||||||||||||||||||||||||||||||||||||||||||
<ELSE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
| An else opening tag. Executes enclosed tags if preceeding if and optional elseif tags evaluated false. | ||||||||||||||||||||||||||||||||||||||||||||||||
</ELSE>
|
||||||||||||||||||||||||||||||||||||||||||||||||
| An else closing tag. | ||||||||||||||||||||||||||||||||||||||||||||||||
<SCRIPT>
|
||||||||||||||||||||||||||||||||||||||||||||||||
|
Loads and executes another PaintletScript file. Scripts are executed
in sequence.
parameters |
||||||||||||||||||||||||||||||||||||||||||||||||
</PAINTLET>
|
||||||||||||||||||||||||||||||||||||||||||||||||
| The final tag enclosing a PaintletScript. |
|
|
|