Package eu.svjatoslav.sixth.e3d.examples
Class RainingNumbersDemo
java.lang.Object
eu.svjatoslav.sixth.e3d.examples.RainingNumbersDemo
- All Implemented Interfaces:
eu.svjatoslav.sixth.e3d.gui.FrameListener
Demo showing numbers falling through 3D space like rain.
Creates 1000 randomly positioned text canvases displaying digits 0-9,
which continuously fall downward and wrap around to create a "Matrix" style effect.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RainingNumbersDemo
public RainingNumbersDemo()Creates a new RainingNumbersDemo instance.
-
-
Method Details
-
main
Entry point for the raining numbers demo.- Parameters:
args- command line arguments (ignored)
-
onFrame
public boolean onFrame(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel, int millisecondsSinceLastFrame) Animates all text canvases to fall downward each frame. Numbers that fall below the area wrap around to the top.- Specified by:
onFramein interfaceeu.svjatoslav.sixth.e3d.gui.FrameListener- Parameters:
viewPanel- the view panelmillisecondsSinceLastFrame- time elapsed since last frame- Returns:
- true to continue animation
-