Class RGBCubeDemo

java.lang.Object
eu.svjatoslav.sixth.e3d.examples.RGBCubeDemo

public class RGBCubeDemo extends Object
Demo showing a 3D cube of colored squares where each axis represents a color channel.

Creates a 10x10x10 grid of textured squares arranged as flat XY planes. Each square's color is determined by its 3D position:

  • X position → Red intensity (0-255)
  • Y position → Green intensity (0-255)
  • Z position → Blue intensity (0-255)

Each square has a black border to visually separate individual plates. The result is a volumetric RGB color cube that can be explored by flying around.

  • Constructor Details

    • RGBCubeDemo

      public RGBCubeDemo()
  • Method Details

    • main

      public static void main(String[] args)
      Entry point for the RGB cube demo.
      Parameters:
      args - command line arguments (ignored)