Package cit244.api


package cit244.api
Main API for CIT AViz sketches, including drawing, input, timing, and controls.

Graphics provides methods for drawing shapes, lines, text, images, and backgrounds. You can also get information about the drawing area, set colors, and transform coordinates.

Implement Sketch to define a sketch. Its render method receives:

  • Graphics, the drawing context.
  • Frame, elapsed time and frame timing.
  • Params, adjustable parameters and controls.
  • Input, keyboard and mouse input.

SketchApp launches a sketch. AppConfig configures the window and renderer. See the documentation overview for a complete example and links to additional APIs. For a few additional graphics-related math operations, see Mathf.

See Also:
  • Class
    Description
    Per-frame timing and frame-count information passed to Sketch.render(Graphics, Frame, Params, Input) on every tick.
    Minimal drawing API for sketches.
    Line end-cap style used for stroked lines and shape outlines.
    Read-only mouse and keyboard state for the current frame.
    Non-character keys supported by the input API.
    Mouse buttons supported by the input API.
    Interface for interactive runtime parameters (sliders, toggles, buttons, etc.).
    No-op implementation for compatibility rendering mode.
    Base interface for all framework sketches.