AnfyFire - Copyright (C) by Fabio Ciucci 1996/98 This applet can generate and animate a realtime "fire" effect, well know in the "demo scene" contest.This applet is fully parametrized, so you can generate all kinds of fire effects. The following 3 ".class" files must be uploaded: fire.class, Lware.class and anfy.class. Insert the tag in your html document as follows to add this applet to your page (Comments after the ";" symbol are code explanations and acceptable min/max values. They are not part of the applet language): ; Name, Width, Height ; Registration code (if you have it) ; Optional URL link when applet is "clicked". ; Reglink opened in new frame? ; Name of new frame for reglink ; Statusbar message ; width (1-1024) ; height (1-1024) ; horizontal resolution (1-8) ; vertical resolution (1-8) ; fire cut start (1-127) ; fire cut value (1-127) ; minimal lightning at base (0-127) ; fire mode (1=rectangle 2=convex) ; random gen. repeating (1-9) ; red value (0-8) ; green value (0-8) ; blue value (0-8) ; Optional image over applet ; Over image X offset ; Over image Y offset ; Memory deallocation delay ; Task priority (1..10) ; Fix Netscape 3.0 bug ("YES","NO") ; Min. milliseconds/frame for sync Sorry, your browser doesn't support Java. ; Message for no java browsers. ; End of applet tag --------- The following instructions detail how to change parameters: Attempting to change the credits parameter will disable the applet. To activate the reg parameters read the shareware registration notes. In the "regcode" parameter, place the registration code you purchased from the author. If the code is correct and the applet is run from the registered domain name, you can use "link" parameters to link to a URL when the applet is "clicked". If you set "regnewframe" to "YES", you can specify a specific frame location for the reglink: "_blank" : To load the link in a new blank unnamed browser window. "_self" : To load the link into the same window the applet occupies. "_parent" : To load the link into the immediate FRAMESET parent. "_top" : To load the link into the top body of the window. You can also set a custom frame name, such as "myframe1". With the "overimg" parameter you can specify the name of an image that will be painted over the applet. The best options are transparent GIF images. NOTE: Animated GIF images are supported, but will be displayed as animated only on latest browsers (Netscape 4 and Explorer 4 or newer). With "overimgX" and "overimgY" you can center the image over the applet area. The parameters "fwidth" and "fheight" determine the "internal" width and heigth of the fire, but will be "real" size only if resx=1 and resy=1. In fact, resx and resy are sort of "scalers", "zoomers", or "stretchers", so to speak: if fwidth and fheigth are set to 8 and 10, and resx=2 & resy=2, you will have a "real" size of 16 x 20. The real size is fwidth*resx X pheight*resy. This effect is better when resy is greater than resx. Regarding the fire cutting values fcut and fsub: fcut must be higher than fsub, and some values will generate wrong effects. Optimum range is 1-127. The deflight (0-127) determines the minimal light at the base of fire... so with a value of 0 the fire will have more black holes than placing it as 127. If you like the fire as a rectangular block, set fmode=1. If you like the fire as a convex (conical) flame, set it to 2. You can determine the smoothing of random generator with rndrep (1-9)... with lower values you will have less smoothed flames, and vice-versa. In the palette there are 3 values for Red Green Blue (RGB). Settings can go from 0 (none) to 8 (full), and are named paletteR, paletteG, paletteB. You can generate red (fire), green (magic), blue (gas) flames... there are 700 combinations possible, just select your preference.