#!/usr/local/bin/gracula ############################################################################### ############### CHANGE THE ABOVE PATH AS NEEDED FOR YOUR SYSTEM ############### ############################################################################### ## ## owl.gcl ## ## Copyright (c) 1999 G. Adam Stanislav ## All rights reserved. ## ## This is a sample GCL (Graphic Counter Language) script. You can use it for ## the creation of graphic counters or timers, such as those used on web pages. ## ## To run this script, you need a GCL compiler/interpreter, which you can ## obtain from: ## ## http://www.whizkidtech.net/gcl/ ## ## Please make sure you have at least version 3.0 of gracula. ## ## NOTES: ## ## 1. You may need to edit any paths in this script to match the paths ## on your system. Hint: Use sed. Or use these paths. They are the ## recommended defaults. ## ## 2. Any line in this script starting with two octothorps (`##') ## is a comment. Any line starting with one is a compiler directive. ## Blank lines are ignored. ## ## 3. It is strongly suggested you use a COPY of this file as your script. ## This is because gracula will overwrite it, and you will lose all ## these nice comments. ## ## 4. Since this script needs to be executed by the shell, and read and ## written by gracula, it is important to have the necessary file access ## permissions set. Using `chmod 777 owl.gcl' will do. ## ############################################################################### ############################################################################### ## ## Determine where to find the graphics. ## ############################################################################### ## Define `#0' (digit `0'): #0 [0, 0, 17, 24] ## Define `#1' (digit `1'): #1 [18, 0, 12, 24] ## Define `#2' (digit `2'): #2 [32, 0, 16, 24] ## Define `#3' (digit `3'): #3 [48, 0, 16, 24] ## Define `#4' (digit `4'): #4 [65, 0, 17, 24] ## Define `#5' (digit `5'): #5 [81, 0, 16, 24] ## Define `#6' (digit `6'): #6 [98, 0, 16, 24] ## Define `#7' (digit `7'): #7 [114, 0, 15, 24] ## Define `#8' (digit `8'): #8 [130, 0, 16, 24] ## Define `#9' (digit `9'): #9 [147, 0, 16, 24] ## Define `#-' (dash): #- [182, 12, 11, 2] ## Define `#%' (colon): #% [174, 6, 6, 15] ## Define `#^' ("T"): #^ [211, 0, 20, 24] ## Define `#@' ("Z"): #@ [231, 0, 17, 24] ## Define `#<' (minus): #< [182, 12, 11, 2] ## Define `#>' (plus): #> [194, 6, 18, 16] ## Define `#~' (space): #~ [-12, -16, 12, 16] ## Define `#;' (dot): #; [174, 6, 6, 4] ## Define `#,' (comma): #, [165, 17, 6, 9] ## Graphic `#:' (head) not used in this script. ## Graphic `#.' (tail) not used in this script. ## Define `#$' (background) ===> CHANGE THE PATH BELOW AS NEEDED <=== #$ "/usr/local/share/gracula/pix/owl.gd" gd ## Graphic `#+' (tile) not used in this script. ## Define `#[' (array) ===> CHANGE THE PATH BELOW AS NEEDED <=== #[ "/usr/local/share/gracula/pix/g.gd" gd ############################################################################### ## ## Define the color of the background (the frame layer). ## ############################################################################### bkg 255 255 255 ############################################################################### ## ## Define the "invisible" color. This color is used for transparent pixels. ## It is always used in the counter layer, optionally in the image layer. ## ############################################################################### invis 7 17 37 ############################################################################### ## ## Define the head kerning value. ## ## This value determines the number of pixels to insert after the head image. ## ############################################################################### kern head 0 ############################################################################### ## ## Define the tail kerning value. ## ## This value determines the number of pixels to insert before the tail image. ## ############################################################################### kern tail 0 ############################################################################### ## ## Define the digits kerning value. ## ## This value determines the number of pixels to insert between digits. ## ############################################################################### kern digits 2 ############################################################################### ## ## Define the commas kerning value. ## ## This value determines the number of pixels to insert around commas. ## ############################################################################### kern commas 2 ############################################################################### ## ## Define the spaces kerning value. ## ## This value determines the number of pixels to insert around spaces. This ## value is typically 0. ## ############################################################################### kern spaces 0 ############################################################################### ## ## Define the dots kerning value. ## ## This value determines the number of pixels to insert around dots. ## ############################################################################### kern dots 2 ############################################################################### ## ## Define the dashes kerning value. ## ## This value determines the number of pixels to insert around dashes. ## ############################################################################### kern dashes 2 ############################################################################### ## ## Define the colons kerning value. ## ## This value determines the number of pixels to insert around colons. ## ############################################################################### kern colons 2 ############################################################################### ## ## Define the plusses kerning value. ## ## This value determines the number of pixels to insert around plusses. ## ############################################################################### kern plusses 2 ############################################################################### ## ## Define the minuses kerning value. ## ## This value determines the number of pixels to insert around minuses. ## ############################################################################### kern minuses 2 ############################################################################### ## ## Define the times kerning value. ## ## This value determines the number of pixels to insert around times (`T'). ## ############################################################################### kern times 2 ############################################################################### ## ## Define the zones kerning value. ## ## This value determines the number of pixels to insert around zones (`Z'). ## ############################################################################### kern zones 2 ############################################################################### ## ## Turn on colorization. ## ## Colorization changes the first occurence of black in the array image to ## the color specified below. If black is not found, it will use the nearest ## match. However, it will not work if black is the transparent color. ## ## This option is useful when you want to reuse the same images in different ## counters, but use different colors in each. ## ############################################################################### colorize 80 160 255 ############################################################################### ## ## Declare transparency of the frame background. ## ## Ignored if frame type declared. ## ############################################################################### trans ############################################################################### ## ## Define the type of frame to use. ## ############################################################################### frame none ############################################################################### ## ## Define the padding around the sides of the counter layer. ## ############################################################################### pad 0 ############################################################################### ## ## Define the size of group of digits separated by a comma, space, or dot. ## ############################################################################### group 3 ############################################################################### ## ## Define the group separator. ## ## Uncomment the group separator you want to use. Comment out the rest. ## ############################################################################### group commas ## group dots ## group spaces ############################################################################### ## ## Declare counter orientation. ## ############################################################################### horizontal ############################################################################### ## ## Define horizontal alignment. ## ## Ignored by GCL interpreter because this counter is not vertical. You should ## comment it out unless you plan to change the counter into a vertical one at ## some later time. ## ############################################################################### ## align center ############################################################################### ## ## Define vertical alignment. ## ############################################################################### align head middle align tail middle align digits middle align commas middle -9 align spaces middle align dots middle -7 align dashes middle -1 align colons middle -1 align plusses middle -2 align minuses middle -1 align times middle align zones middle ############################################################################### ## ## Define the number of pixels to shift the counter vertically relative to the. ## background graphic. ## ############################################################################### shift down 13 ############################################################################### ## ## Define the number of pixels to shift the counter horizontally relative to. ## background graphic. ## ############################################################################### shift right 70 ############################################################################### ## ## Do not make the counter or timer print in reverse (right to left). ## ############################################################################### reverse none ############################################################################### ## ## Define minimum number of digits to draw. ## ## If the counter value is too small for the minimum number of digits, it will ## be left-padded with zeros. ## ## The acceptable range is 1 - 127. ## ############################################################################### mindigits 1 ############################################################################### ## ## Redirect browser to a different URL. Must contain the full URL, starting ## with "http://" or "ftp://" and such. Typically combined with "silent." ## ## May be followed by an exclamation point to turn off inhibition when using ## the `-r' command line override. ## ## Without the exclamation point, GCL interprets the "redirect" keyword as ## "redirect as well as inhibit". ## ############################################################################### redirect none ############################################################################### ## ## Do not show seconds in timers. ## ############################################################################### seconds none