Class SketchApp

java.lang.Object
cit244.app.SketchApp

public final class SketchApp extends Object
Entry point for sketches (fractal art, synth visualizers, etc.).

Typical usage:


 public static void main(String[] args) {
     SketchApp.run(new MySketch());
 }
 

For custom viewport size:


 SketchApp.run(new MySketch(), 1400, 900);
 
See Also:
  • Method Details

    • run

      public static void run(Sketch sketch)
      Launches with default settings.
    • run

      public static void run(Sketch sketch, int width, int height)
      Launches with a custom viewport size.
    • run

      public static void run(Sketch sketch, AppConfig config)
      Launches with a full config.
    • runCompat

      public static void runCompat(Sketch sketch)
      Launches in safe mode (compatibility rendering).
    • runCompat

      public static void runCompat(Sketch sketch, int width, int height)
      Launches in safe mode with a custom viewport size.
    • runCompat

      public static void runCompat(Sketch sketch, AppConfig config)
      Launches in safe mode with a full config.