corner gif
border gif
corner gif
border gif
Lorraine's Lakes
border gif
corner gif
border gif
corner gif

 



So you want to have the water ripple from the horizon? ....

3 Easy Steps

  1. Prepare your picture

  2. Add the required code

  3. Adjust horizon to suit your image

The latest applet from David Griffiths,(version 4), has the addition of a parameter that's ideal for images that have water in the picture that ends in a horizon. It's very easy to make these images into an applet and allows you to keep that interesting colored lake or sea instead of reflecting the sky. You can also adjust the speed of the water movement too!

If you haven't already got this applet you can download it from here



rocky mountain

Step 1.

Let's use this picture to experiment with. Right click on the picture and save it to a folder that has the lake.class file in it as well. You will also need to save your web page there too.



Step 2.

Copy and paste the following code to your web page editor or Notepad. Full instructions for making a web page are on the Lake applet tutorial page here.

Note that the width and height measurements are the same as the image. We do not have to allow room for the water to ripple.

 

<html>
<title>My Horizon Applet</title>
</head>
<body>
<div align="center">
<applet code=lake width="246" height="328">
<param name=image value="rocks.jpg">
<param name=horizon value="190">
<param name=speed value="20">
</applet>
</div>
</body>
</html>

Step 3.

The only parameters that may need adjusting with your own images are the
<param name=horizon value="190">
as the horizons are most likely different. Remember that the code for the horizon works from the top down and is in pixels. So changing the example horizon value to, for example value="180" will start the water rippling 10 pixels higher up.
The other code that can be changed, and you may like to experiment with this, is the
<param name=speed value="20">
The default speed is 50, but you can take this higher for a faster ripple or lower for a slower ripple. it all depends on your image!

Have fun! Warning! Lake applets can be hazardous to your time... you can't stop making them :)


Tutorial Index

Home | Lake applet tutorial | Horizon applets | Snow applet tutorial | Overlay Tutorial | Tips and Hints | Publish to Web | Resources |

Copyright © 2000
Lorraine's Lakes