Photo>Graphics PRO
Sample Scripts

Listed here are some samples that may help you better understand how the interface works.

It is a summary of some of the samples included in the SCRIPTS directory.

Takes the selected TEXT object and does funky things with it.

In particular it places it inside a CUSTOM REGION and applies a RECTANGULAR LENS over it.

Create nice drop shadows for the selected text object. Again using CUSTOM REGIONS with BLUR tools so that the blur doesn't affect anything you don't want it to.

This script randomly creates a large number (between 1 and 100) of random objects each time it is run. The effect is often quite nice but is sometimes quite slow so be patient!.

This script turns every object with a colour attribute (i.e. an object with a solid colour, colour fade or emboss tool) blue. It prompts for confirmation before doing anything ("Are you feeling blue?"). Basically, this is a silly toy.

These files make up the calendar script.

CALENDAR.GDO is the template project. It must be loaded for the script to work.

The month and year are set by editing the text of a headline text object. The script "calendar.cwx" uses this information to fill in the actual days, month and year on the calendar. The script "calclear.cwx" blanks out the calendar, making the art more visible.

You can change the bitmap or edit the individual text object properties to make your own custom calendar.

This script is a Mandelbrot set generator. Running the script will draw a section of the Mandelbrot set against a black background. It takes a LONG TIME to run. You may trade resolution for speed by editing the script and, at the following lines, comment out the first and uncomment the second.

 resx=16; resy=16
/*resx=8; resy=8*/

This script lists all of the properties of the currently selected object, plus its tool and region.

This script generates a starfield against a black background. The background is only created if it doesn't yet exist. Thus, you can run the script several times to get more stars.

Takes the currently selected object, duplicates it and rotates it 5 degrees. Continues doing this until it hits 90 degrees rotation.

Since our developers don't really have a life, late (early?) one Saturday morning they wrote one. This is an artificial life simulation that progresses through 200 generations. (it can be quite slow, but life's like that)

This is a demonstration of one method of using interaction with the user. It prompts the user to edit the TEXT Captions for values and then uses these values to rotate the object.



Object Properties

Index

Terminology