|
All the possible parameters are listed below, remember that in most cases you will not need all these paramters and if you don't need them don't add them! Each parameter is explained separately below: The following text describes each of the parameters in turn. As with all my applet descriptions any parameter with a green background is required, yellow backgrounds indicate optional entries, default values for each parameter are enclosed within brackets next to the name. Please remember to replace the variable type in the above parameters with an appropriate entry, eg. [integer] could be 1, 2, 3, etc. The width of the applet will depend on the number and size of blocks you are displaying. For example, if you are displaying 24 blocks and they are each 30 pixels wide (as in my example above) the applet width would
This parameter is really the only required parameter for basic operation of the applet. To use the applet most effectively you should follow the simple tutorial provided by clicking the following link
These three parameters, each of which take a path/filename as their values, tell the applet where to find the image file containing the block graphics. By default only one block style is used (for an explanation of multi-block use please see the If you wish to use multiple styles of block (ie. if you use the You do not and should not set both
This parameter, which takes an integer as its value, sets the number of blocks visible on the screen. The default value is 24 as in the demo at the top of this page. However you can use any value you like both odd and even. When choosing the number of
This parameter takes an integer as its value and effectively determines how quickly the blocks will fall (the value equates to pixels per second per second). It most cases (all but those applets where the height is extremely large) the default value of 2 should be fine. It should be noted that this value must be an even value, using odd numbers will cause unpredictable (usually applet failure) results.
If you wish to alter the amount of time the blocks are displayed on screen (once they have become stationary) you should alter this parameter. The value taken is a decimal number representing the show time in seconds.
If you want to make the blocks bounce either more or less than they do by default then this is the parameter to change. It effectively amounts to the coefficient of restitution in an equation of motion and can be almost any decimal number (see note later). The default value of 0.85 should be fine in most cases but try experimenting and see what happens. Please note however that giving this parameter a value of 0.3 will cause it to fail.
This parameter taking a single integer as its value allows you to specify a specific sequence by which the blocks drop into place. This sequence will be used for all the lines of text. The default value of -1 results in random sequences being used for each drop. There are eight sequences built-in but the number available will depend on whether the number of
If you are using URL's in your text then this parameter may (or may not) be of interest to you. By default any clicked URL's will be opened in the root window containing the applet, ie. the default of
Every individual block within each image must be of an equivalent height and width. To set these parameters you must give integer values to With the width and height of the blocks defined the next step is to define how the applet finds each block within the file. To achieve this you must supply integer values to four parameters;
With the layout of the image file now known you must also supply three further parameters. The first of these ABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890!?&.,:*()$^'+
If you have any problems using these parameters to enable you to use your own block designs then please email me (see icons at top of page).
As well as the built-in drop sequences it is also possible to introduce your own. This is achieved through these two parameters. If you wish to replace all the built-in sequences with your own then use Both parameters take the same form of value, a path and filename. The file should be a plain ASCII text document. The format of the file is quite straightforward, each line contains a sequence of numbers separated by spaces or commas. Each entry corresponds to the equivalent block displayed on screen, i.e. the first number represents the first block, the second number represents the second block and so on. The number represents the delay (in iterations) occuring before a block drops into place. For example, the following line would represent one of my sequences:
This parameter allows you to set a general background colour for the applet. The default is white (FFFFFF) and the format for entry is the standard hextriplet used in HTML tags. So for example to set the background to black use a value of 000000, for pure red use FF0000, etc.
The final user changeable parameter allows you to add a background image behind the falling blocks. The parameter takes as its value a path and filename to the graphic you wish to display, the format can be either jpeg or gif. The image itself will be centred on the applet display. I hope you enjoy this applet, feel free to email me or leave a message in the guestbook (see icons at top of page). Similarly if you have problems or suggestions for improvements drop me an email or leave a message in the guestbook. Please also remember to abide by the conditions of use you agreed to on download. |