RunningRainbow
<applet code=RunningRainbow.class width=468 height=30>
<param name="delay" value="100">
<param name="shift" value="2">
<param name="direction" value="left">
<param name="method" value="trapezoid">
<param name="ss" value="0.3">
<param name="ar" value="0.">
<param name="ag" value="0.33">
<param name="ab" value="0.66">
<param name="ar1" value="1.">
</applet>
The applet currently supports two methods of image generation.
- Trapezoid -- this method generates a standard color wheel -- a line with a hue parameter change from 0 to 255. In other words this is a real rainbow line.
This method has no additional generation parameters.
- Gaussian -- this method generates a gaussian peak for each component based on other parameters supplyed.
This method allows to generate some interesting effects.
The parameters are:
- Mean value of each component . The parameters' names are: 'ar', 'ag', 'ab' for read , green and blue components correspondently.
The obvious meaning of this value is -- it shows where the maximum intensity point is.
This parameter is of 'double' type and may have a value on the range between 0 and 1.
(The whole length of the bar is considered to be 1 i.e. the value of 0.5 means -- in the middle of the bar).
- Dispersion of each component -- it sets the width of gaussian peak or better to say the width, where intensity of the particular component reduces to it's one-half. The parameters' names are: 'sr', 'sg', 'sb'.
There are also animation parameters supported. They are:
- 'delay', (Integer) -- delay of animation in milliseconds. Default value: 100;
- 'shift', (Integer) -- shift between two frames of animation. Default Value: 2;
- 'direction', (String) -- direction of animation. Possible values: ["left" | "right"], Default value: "left";
Back to the RunningRainbow applet page.
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
|