Next: Net-Fu
Up: Script-Fu: Graphic Art for
Previous: Architecture
The three components that comprise Script-Fu work together to generate
a logo. Their interaction is fairly straightforward and consists of
six steps:
- Script-Fu presents the user with an interface allowing a
style of logo to be selected and input parameters associated with that
style to be set.
- Once a logo is selected, Script-Fu formulates a command based on
the user inputs and sends it to the Scheme interpreter. The
interpreter begins to process the selected script.
- The Scheme interpreter reads a command from the script,
and if it is GIMP-related, forwards it to Script-Fu. Otherwise goto
step 6.
- If the interpreter forwarded a command, Script-Fu parses it and
reformats it so that GIMP will accept it. Script-Fu then requests
that GIMP execute the command and waits for GIMP to signal success or
failure.
- GIMP executes the command incoming from Script-Fu, and on
success, returns any values which the command requires as outputs. On
failure, GIMP returns an error message.
- The Scheme interpreter checks if the script has been fully
processed. If so, then the logo is finished; otherwise, goto step 3.
Spencer Kimball
Wed May 28 22:14:48 PDT 1997