AnfyPlasma 2.1 - Copyright (C) by Fabio Ciucci 1996/98 This applet can generate and animate a realtime "plasma" effect, well know in the "demo scene" contest. Remember that are needed both Plasma3.class , Lware.class and anfy.class. You must upload these 3 .class files and insert the tag on your html document to add this applet to your page. This applet is fully parametrized, so you can generate all kinds of plasma you want. Here an example of what you have to write in the html (the things anfter the ; are comments with min-max values acceptet): ; Name, Width, Height ; Register code (if you have it) ; URL where go optionally when clicked ; Reglink opened in new frame? ; Name of new frame for reglink ; Statusbar message ; resolution (1-8) ; generator1 (8-2000) ; generator2 (3-256) ; generator3 (3-256) ; Red1 (0-255) ; Red2 (0-255) ; Red3 (1-8) ; Green1 (0-255) ; Green2 (0-255) ; Green3 (1-8) ; Blue1 (0-255) ; Blue2 (0-255) ; Blue3 (1-8) ; Speed (1-8) ; File for scrolltext or "NO" ; Txtscroll y offset ; Txtscroll speed ; Txtscroll font name ; Txtscroll bold ("YES" or "NO") ; Txtscroll font size ; Txtscroll shadow ("YES" or "NO") ; Txtscroll color (red component) ; Txtscroll color (green component) ; Txtscroll color (blue component) ; Txtscroll shadow col. (red c.) ; Txtscroll shadow col. (green c.) ; Txtscroll shadow col. (blue c.) ; Txtscroll jump aplitude ; Txtscroll jump speed ; Txtscroll sineshape amplitude ; Txtscroll sineshape movement ; Txtscroll sineangle / pixel ; Memory deallocation delay ; Task priority (1..10) ; Fix Netscape 3.0 bug ("YES","NO") ; Min. milliseconds/frame for sync Sorry, your browser doesn't suppor Java. ; Message for no java browsers. ; End of applet tag --------- Here detailed instructions about how to change parameters: The credits parameter can't be changed otherwise the applet will not work. To activate the reg parameters read the shareware registration notes. In the "regcode" parameter you have to place the registration code you purchase from the author. If it is correct and the applet is run from the registered domain name, you can use "reglink" parameter, where you can specify an URL where bring user when the applet is clicked. If you set to "YES" regnewframe, you can specify a frame where load 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. Otherwise the frame name, for example "myframe1". The size of the applet is determined by width and height tags. The res parameter determine the resolution: with res=1 pixels are small, but effect is slow, with res=8 pixels are too great but effect fast. I think the best choices are 2-4. About the plasma generators gen1,gen2,gen3, I can say that gen1 is a sort of smooth value: the min is 8 (very smooth, like fog), and the max is 2000, where all is psychedelic (too much, I think). Gen2 and Gen3 are x and y stretchers... can go from 3 (many small curves) to 256 (one great curve). About the palette, there are 3 parameters for each Red Green Blue (RGB) component. This is more complex, but can give you much flexibility (and also the power to do many bugged palettes). The red1,green1,blue1 values (0-255) are the multipliers of tonality. The red2,green2,blue2 values (0-255) are fixed added values of tonality. The red3,green3,blue3 values (1-8) are "smoothing" values of tonality. This mean that if red1=0, then green3 value is totally disabled and all the 256 colours will have "red2" red component. Try to change this values, but some combinations make ugly palettes, you have to make some experiments. Just for who can understand, consider the formula used to make palette (r steps from 0 to 255): red = (sin(r*PI*2/(256/red3 ))*red1 )+red2 green= (sin(r*PI*2/(256/green3))*green1)+green2 blue = (sin(r*PI*2/(256/blue3 ))*blue1 )+blue2 In any case a component value must exceed 255. easy, no? The speed, from 1 to 8, is useful only when you make really large plasmas that are slow... in this case you can increase a bit this value, but the plasma will be not really more fast: it will simply skip some frames, and this add flickerings and loose smoothness (in faster machines). Please use speed = 1 when possible. Or atleast don't exceed speed=4.