Class RainingNumbersDemo

java.lang.Object
eu.svjatoslav.sixth.e3d.examples.RainingNumbersDemo
All Implemented Interfaces:
eu.svjatoslav.sixth.e3d.gui.FrameListener

public class RainingNumbersDemo extends Object implements 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
    Constructor
    Description
    Creates a new RainingNumbersDemo instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Entry point for the raining numbers demo.
    boolean
    onFrame(eu.svjatoslav.sixth.e3d.gui.ViewPanel viewPanel, int millisecondsSinceLastFrame)
    Animates all text canvases to fall downward each frame.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • RainingNumbersDemo

      public RainingNumbersDemo()
      Creates a new RainingNumbersDemo instance.
  • Method Details

    • main

      public static void main(String[] args)
      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:
      onFrame in interface eu.svjatoslav.sixth.e3d.gui.FrameListener
      Parameters:
      viewPanel - the view panel
      millisecondsSinceLastFrame - time elapsed since last frame
      Returns:
      true to continue animation