Anfy Wobbler - Copyright (C) by Fabio Ciucci 1998/99 This applet can wobble any GIF or JPG image of any size. It is based on original code by Jetro Lauha, which is used under a licence. Due to particular optimisations, the applet size must be a multiple of 8, in both width and height. Regarding image size, any size is allowed, but there are particular sizes: 32x32 , 64x64, 128x128 or 256x256 which are the best ones, because applet will run a lot faster. We strongly suggest to load an image with one of the sizes listed. **************************************************************************** NECESSARY FILES. The following 3 ".class" files must be uploaded: wobbler.class Lware.class anfy.class. Plus, wobbler.jar for speedy loading on recent browsers. *************************************************************************** EXAMPLE. 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): ; Registration code (if you have it) ; Optional URL link when the applet is "clicked". ; Reglink opened in new frame? ; Name of new frame for reglink ; Statusbar message ; Image to load ; resolution (1-8) ; Initial distance (0.01 .. 500) ; Zoom speed (0.0 .. 50.0) ; Min Distance (0.01 .. 500) ; Max Distance (0.01 .. 500) ; Radius in pixels ; Wave Strength ; Speed 1 ; Speed 2 ; Speed 3 ; Speed 4 ; X speed (0 .. 1000) ; Y speed (0 .. 1000) ; Starting sine variation ; Variation speed (0 .. 1000) ; Precision ("high" or "low") ; Optional image over applet ; Over image X offset ; Over image Y offset ; Memory deallocation delay ; Task priority (1..10) ; Min. milliseconds/frame for sync Sorry, your browser doesn't support Java. ; Message for no java browsers. ; End of applet tag ****************************************************************************** INSTRUCTIONS. The following instructions describe how to change parameters: Attempting to change the "credits" parameter will disable the applet. To activate the reg parameters, please 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 mouse-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 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 GIF or JPEG image can be of any size, but we strongly suggest these: 32x32 , 64x64, 128x128 or 256x256, because applet will run a lot faster. The size of the applet is determined by the width and height tags, and can be different from the size of the image. Just remember to choose a multiple of 8 for both width and height values, or applet will have problems and black borders. The "res" parameter determines the resolution: with res=1 pixels are small, but effect is slow. With res=8 pixels are too big but the effect is faster. Optimum choices are 1-3. To configure the wobbler in order to display different effects, you have to change the many parameters it has, but unfortunately there is not a way to explain how all behave, because of the non-linear math behind this applet and the unpredictable results. The best option is to experiment yourself, starting from some of the examples provided: ********************************************************************************* SAMPLE VALUES. The default wobbler: initialdistance = 3.0 zoomspeed = 0.1 mindistance = 5.0 maxdistance = 20.0 radius = 400.0 wavestrength = 8.0 spd1 = 40.0 spd2 = 30.0 spd3 = 50.0 spd4 = 40.0 xmove = 200 ymove = 200 variationstart = 0 variationmove = 10 Concentric waves (water like): initialdistance = 5.0 zoomspeed = 0.0 mindistance = 5.0 maxdistance = 5.0 radius = 400.0 wavestrength = 102.0 spd1 = 120.0 spd2 = 140.0 spd3 = 0.4 spd4 = 10.0 xmove = 0 ymove = 0 variationstart = 0 variationmove = 200 Something like a star: initialdistance = 80.0 zoomspeed = 0.0 mindistance = 80.0 maxdistance = 80.0 radius = 40.0 wavestrength = 0.0 spd1 = 10.0 spd2 = 100000.0 spd3 = 10.0 spd4 = 10.0 xmove = 200 ymove = 200 variationstart = 0 variationmove = 100 Mapping over a sphere: initialdistance = 12.0 zoomspeed = 0.0 mindistance = 12.0 maxdistance = 12.0 radius = 220.0 wavestrength = 0.0 spd1 = 1000.0 spd2 = 1000.0 spd3 = 10.0 spd4 = 10.0 xmove = 200 ymove = 200 variationstart = 0 variationmove = 30 A breathing surface: initialdistance = 10.0 zoomspeed = 0.3 mindistance = 2.0 maxdistance = 20.0 radius = 380.0 wavestrength = 0.0 spd1 = 10.0 spd2 = 10.0 spd3 = 10.0 spd4 = 10.0 xmove = 0 ymove = 200 variationstart = 0 variationmove = 10 Metallic reflection: initialdistance = 6.0 zoomspeed = 0.4 mindistance = 2.0 maxdistance = 22.0 radius = 4000.0 wavestrength = 16.0 spd1 = 5.8 spd2 = 20.0 spd3 = 1.4 spd4 = 100.0 xmove = 140 ymove = 140 variationstart = 0 variationmove = 10