Rotating Sphere
Example

About
This rotating sphere is a sample of some simple 3d with double buffering.

Source
Java Files Class Files HTML Files Zip Files
JZOORotatingSphere.java
Matrix2D.java
Object3D.java
Sphere.java
Vertex.java
JZOORotatingSphere.class
Matrix2D.class
Object3D.class
Sphere.class
Vertex.class
jzoorotatingsphere.txt
(rename to a .html file)
jzoorotatingsphere.zip

Parameters
bgcolor background color using hexadecimal notation (eg bgcolor="ffffff")
fgcolor foreground color using hexadecimal notation
radius radius of the sphere
density a measure of how dense or sparse the points of the sphere are


Usage Example
<applet code="RotatingSphere.class" width=500 height=100>
<param name="bg" value="ffffff">
<param name="fg" value="ff0000">
<param name="radius" value="80">
<param name="density" value="32">
</applet>



Last Updated 13 Feb 1999
Copyright © Kevan Stannard 1999

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the United states and other countries. JZOO is independent of Sun Microsystems, Inc.