Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- a() - Method in record class cit244.api.color.Color
-
Returns the value of the
arecord component. - add(Vec2) - Method in record class cit244.api.geom.Vec2
-
Adds another vector component-wise.
- Additional APIs - Search tag in Overview
- Section
- ALT - Enum constant in enum class cit244.api.Input.Key
-
Alt modifier key.
- anchor(double, double) - Method in record class cit244.api.image.SpriteDraw
-
Changes the anchor point, using fractions of the sprite's dimensions.
- anchorX() - Method in record class cit244.api.image.SpriteDraw
-
Returns the value of the
anchorXrecord component. - anchorY() - Method in record class cit244.api.image.SpriteDraw
-
Returns the value of the
anchorYrecord component. - Animation - Class in cit244.api.image
-
An immutable sequence of sprite frames played at a fixed frame rate.
- AnimationPlayer - Class in cit244.api.image
-
Plays an
Animationfor a character or other object, keeping track of its elapsed playback time. - AnimationPlayer(Animation) - Constructor for class cit244.api.image.AnimationPlayer
-
Creates a player at the beginning of an animation.
- AppConfig - Record Class in cit244.app
-
Immutable configuration for the app framework.
- AppConfig(int, int, RenderMode, int, int, WindowMode, int, String) - Constructor for record class cit244.app.AppConfig
-
Canonical constructor with validation and null-defaulting for
windowMode. - apply(double) - Method in interface cit244.util.Curve
-
Evaluates the curve.
- apply(double) - Method in class cit244.util.Mapping
-
Maps a value.
- A simple sketch - Search tag in Overview
- Section
- at(double, double) - Method in record class cit244.api.image.Sprite
-
Creates drawing instructions with a top-left anchor and native scale.
- at(double, double) - Method in record class cit244.api.image.SpriteDraw
-
Returns drawing instructions at the given position.
- at(double, double, Runnable) - Method in interface cit244.api.Graphics
-
Runs
bodyafter translating to (x, y), then restores the previous state. - at(int, int) - Method in record class cit244.api.image.SpriteSheet
-
Selects a cell by column and row, starting from (0, 0).
- at(Vec2) - Method in record class cit244.api.image.Sprite
-
Creates drawing instructions at the given screen position.
- at(Vec2) - Method in record class cit244.api.image.SpriteDraw
-
Returns drawing instructions at the given position.
- at(Vec2, Runnable) - Method in interface cit244.api.Graphics
-
Runs a drawing block with its origin at the given position, restoring the previous state afterward.
- at(String) - Method in interface cit244.api.Params
-
Returns a new
Paramsthat prepends the given prefix to all paths. - at(String) - Method in class cit244.api.Params.NoopParams
B
- b() - Method in record class cit244.api.color.Color
-
Returns the value of the
brecord component. - background(double) - Method in interface cit244.api.Graphics
-
Fills the viewport with a solid grayscale color.
- background(double, double) - Method in interface cit244.api.Graphics
-
Fills the viewport with a solid grayscale color.
- background(double, double, double) - Method in interface cit244.api.Graphics
-
Fills the viewport with a solid RGB color.
- background(double, double, double, double) - Method in interface cit244.api.Graphics
-
Fills the viewport with a solid RGB color.
- background(Color) - Method in interface cit244.api.Graphics
-
Fills the viewport with a
Color. - BACKSPACE - Enum constant in enum class cit244.api.Input.Key
-
Backspace key.
- BLACK - Static variable in class cit244.api.color.Colors
-
Opaque black.
- BLUE - Static variable in class cit244.api.color.Colors
-
RGB blue.
- bottomCenter() - Method in record class cit244.api.image.SpriteDraw
-
Sets the anchor to the center of the sprite's bottom edge.
- brightness01() - Method in record class cit244.api.color.Color
-
Brightness (0 to 1).
- button(String) - Method in interface cit244.api.Params
-
A momentary button that returns
truefor exactly one frame when clicked. - button(String) - Method in class cit244.api.Params.NoopParams
C
- CCAC_BLUE - Static variable in class cit244.api.color.Colors
-
CCAC brand blue (#316094).
- CCAC_BURGUNDY - Static variable in class cit244.api.color.Colors
-
CCAC brand burgundy (#79242F).
- CCAC_GOLD - Static variable in class cit244.api.color.Colors
-
CCAC brand gold (#DAA900).
- CCAC_GRAY - Static variable in class cit244.api.color.Colors
-
CCAC brand gray (#63666A).
- CCAC_LIGHT_GRAY - Static variable in class cit244.api.color.Colors
-
CCAC brand light gray (#D9D8D6).
- CCAC_NAVY - Static variable in class cit244.api.color.Colors
-
CCAC brand navy (#003057).
- CCAC_RED - Static variable in class cit244.api.color.Colors
-
CCAC brand red (#AA182C).
- centered() - Method in record class cit244.api.image.SpriteDraw
-
Sets the anchor to the sprite's center.
- circle(double, double, double) - Method in interface cit244.api.Graphics
-
Draws a circle defined by center and radius.
- circle(Vec2, double) - Method in interface cit244.api.Graphics
-
Draws a circle centered at a vector at.
- cit244.api - package cit244.api
-
Main API for CIT AViz sketches, including drawing, input, timing, and controls.
- cit244.api.color - package cit244.api.color
-
Immutable colors, color-space conversion, and ready-made color palettes.
- cit244.api.geom - package cit244.api.geom
-
Two-dimensional geometry and vector operations.
- cit244.api.image - package cit244.api.image
-
Images, sprite regions, sprite sheets, and frame-based animation.
- cit244.app - package cit244.app
-
Application-level configuration and launchers.
- cit244.util - package cit244.util
-
Math and utility helpers for graphics and animation.
- cit244.util.noise - package cit244.util.noise
-
Smooth pseudo-random noise for procedural graphics and animation.
- clamp01(double) - Static method in class cit244.util.Mathf
-
Clamps a value to the range
[0.0, 1.0]. - clamped() - Method in class cit244.util.Mapping
-
Keeps the result between the two output endpoints.
- CLEAR - Static variable in class cit244.api.color.Colors
-
Fully transparent black.
- closedShape(Runnable) - Method in interface cit244.api.Graphics
-
Draws a closed shape defined by
Graphics.vertex(double, double)orGraphics.curveVertex(double, double)calls inside the block. - Color - Record Class in cit244.api.color
-
An RGBA color.
- Color(double, double, double, double) - Constructor for record class cit244.api.color.Color
-
Clamps each channel to 0..255.
- Colors - Search tag in interface cit244.api.Graphics
- Section
- Colors - Class in cit244.api.color
-
Named colors for drawing and tinting.
- Colors() - Constructor for class cit244.api.color.Colors
- COMPAT - Enum constant in enum class cit244.app.RenderMode
-
Compatibility rendering mode using Java2D (CPU-based).
- CONTROL - Enum constant in enum class cit244.api.Input.Key
-
Control modifier key.
- Coordinates and units - Search tag in interface cit244.api.Graphics
- Section
- current() - Method in class cit244.api.image.AnimationPlayer
-
Returns the animation currently being played.
- Curve - Interface in cit244.util
-
A function from one number to another, usually used to shape animation progress.
- curveVertex(double, double) - Method in interface cit244.api.Graphics
-
Adds a smooth curve point to the current shape.
- curveVertex(Vec2) - Method in interface cit244.api.Graphics
-
Adds a smooth curve vertex at the given position.
- cx() - Method in interface cit244.api.Graphics
-
Returns center x coordinate of the viewport (
width() / 2.0). - cy() - Method in interface cit244.api.Graphics
-
Returns center y coordinate of the viewport (
height() / 2.0). - CYAN - Static variable in class cit244.api.color.Colors
-
RGB cyan.
D
- damp(double, double, double, double) - Static method in class cit244.util.Mathf
-
Smoothly approaches a target using exponential damping.
- Damped - Class in cit244.util
-
A value that moves smoothly toward a target over time, using frame-rate-independent exponential damping.
- Damped(double, double) - Constructor for class cit244.util.Damped
-
Creates a damped value.
- DARK_GRAY - Static variable in class cit244.api.color.Colors
-
Dark gray (25%).
- defaults() - Static method in record class cit244.app.AppConfig
-
Returns the framework default configuration.
- degrees(double) - Static method in class cit244.util.Mathf
-
Converts radians to degrees.
- DELETE - Enum constant in enum class cit244.api.Input.Key
-
Delete key.
- distanceTo(Vec2) - Method in record class cit244.api.geom.Vec2
-
Returns the Euclidean distance to another position.
- DOWN - Enum constant in enum class cit244.api.Input.Key
-
Down arrow key.
- Drawing and interaction - Search tag in Overview
- Section
- dt() - Method in interface cit244.api.Frame
-
Seconds elapsed since the previous frame, clamped by the harness so that pauses and window drags cannot produce unbounded steps.
- duration() - Method in class cit244.api.image.Animation
-
Returns the time required to display all frames once.
E
- EASE_IN_CUBIC - Static variable in interface cit244.util.Curve
-
Cubic ease-in: slower start, faster finish than quadratic.
- EASE_IN_QUAD - Static variable in interface cit244.util.Curve
-
Quadratic ease-in: slow start, fast finish.
- ellipse(double, double, double, double) - Method in interface cit244.api.Graphics
-
Draws an ellipse defined by center, width, and height.
- ENTER - Enum constant in enum class cit244.api.Input.Key
-
Enter or Return key.
- equals(Object) - Method in record class cit244.api.color.Color
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cit244.api.geom.Vec2
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cit244.api.image.Sprite
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cit244.api.image.SpriteDraw
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cit244.api.image.SpriteSheet
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class cit244.app.AppConfig
-
Indicates whether some other object is "equal to" this one.
- ESCAPE - Enum constant in enum class cit244.api.Input.Key
-
Escape key.
- Example - Search tag in interface cit244.api.Frame
- Section
- Example usage - Search tag in interface cit244.api.Params
- Section
F
- fill(double) - Method in interface cit244.api.Graphics
-
Sets the fill color to a grayscale value.
- fill(double, double) - Method in interface cit244.api.Graphics
-
Sets the fill color to a grayscale value.
- fill(double, double, double) - Method in interface cit244.api.Graphics
-
Sets the fill color for subsequent shapes.
- fill(double, double, double, double) - Method in interface cit244.api.Graphics
-
Sets the fill color for subsequent shapes.
- fill(Color) - Method in interface cit244.api.Graphics
-
Sets the fill
Colorfor subsequent shapes. - finished() - Method in class cit244.api.image.AnimationPlayer
-
Reports whether the current one-shot animation has finished.
- flipped() - Method in interface cit244.util.Curve
-
Rotates this curve 180 degrees around the point (0.5, 0.5), giving
1 - f(1 - t). - flippedX() - Method in record class cit244.api.image.SpriteDraw
-
Returns the value of the
flippedXrecord component. - flippedY() - Method in record class cit244.api.image.SpriteDraw
-
Returns the value of the
flippedYrecord component. - flipX() - Method in record class cit244.api.image.SpriteDraw
-
Enables horizontal mirroring.
- flipX(boolean) - Method in record class cit244.api.image.SpriteDraw
-
Enables or disables horizontal mirroring.
- flipY() - Method in record class cit244.api.image.SpriteDraw
-
Enables vertical mirroring.
- flipY(boolean) - Method in record class cit244.api.image.SpriteDraw
-
Enables or disables vertical mirroring.
- fps() - Method in interface cit244.api.Frame
-
An estimate of the current frame rate.
- fractal(double, double, int) - Static method in class cit244.util.noise.Noise
-
Fractal 2D noise, roughly in [-1, 1]. 4 octaves is a good starting point.
- fractal(double, double, int, double) - Static method in class cit244.util.noise.Noise
-
Fractal 2D noise with custom roughness.
- fractal01(double, double, int) - Static method in class cit244.util.noise.Noise
-
Fractal 2D noise mapped to roughly [0, 1].
- fractal01(double, double, int, double) - Static method in class cit244.util.noise.Noise
-
Fractal 2D noise with custom roughness, mapped to roughly [0, 1].
- frame() - Method in class cit244.api.image.AnimationPlayer
-
Returns the current sprite without advancing playback.
- Frame - Interface in cit244.api
-
Per-frame timing and frame-count information passed to
Sketch.render(Graphics, Frame, Params, Input)on every tick. - frameAt(double) - Method in class cit244.api.image.Animation
-
Selects the sprite displayed at an animation-relative time.
- from(double, double) - Static method in class cit244.util.Mapping
-
Starts a mapping with the given input range and an output range of [0, 1].
- full() - Method in interface cit244.api.image.Image
-
Selects the whole image as a sprite.
- fullscreen() - Method in record class cit244.app.AppConfig
-
Returns a copy of this config set to fullscreen mode.
- fullscreen(int) - Method in record class cit244.app.AppConfig
-
Returns a copy of this config set to fullscreen on a specific display.
- FULLSCREEN_DISPLAY - Enum constant in enum class cit244.app.WindowMode
-
Fullscreen on a specific display.
- FULLSCREEN_PREF - Enum constant in enum class cit244.app.WindowMode
-
Fullscreen on the system's preferred (default) display.
- FULLSCREEN_SPAN - Enum constant in enum class cit244.app.WindowMode
-
Fullscreen spanned across all available displays.
- fullscreenDisplay() - Method in record class cit244.app.AppConfig
-
Returns the value of the
fullscreenDisplayrecord component. - fullscreenSpan() - Method in record class cit244.app.AppConfig
-
Returns a copy of this config set to fullscreen spanning displays (if supported).
G
- g() - Method in record class cit244.api.color.Color
-
Returns the value of the
grecord component. - Getting started - Search tag in Overview
- Section
- GOLD - Static variable in class cit244.api.color.Colors
-
Gold (CSS #FFD700).
- GOLDEN_ANGLE - Static variable in class cit244.util.Mathf
-
The golden angle in radians: 2*PI / PHI^2 ~> 2.39996, or about 137.5077 degrees.
- Graphics - Interface in cit244.api
-
Minimal drawing API for sketches.
- Graphics.StrokeCap - Enum Class in cit244.api
-
Line end-cap style used for stroked lines and shape outlines.
- gray(double) - Static method in record class cit244.api.color.Color
-
Opaque grayscale (0 = black, 255 = white).
- gray(double, double) - Static method in record class cit244.api.color.Color
-
Grayscale with alpha.
- GRAY - Static variable in class cit244.api.color.Colors
-
Mid-gray (50%).
- GREEN - Static variable in class cit244.api.color.Colors
-
RGB green.
- grid(int) - Method in interface cit244.api.image.Image
-
Defines a grid of square sprite cells.
- grid(int, int) - Method in interface cit244.api.image.Image
-
Defines a grid of equally sized sprite cells.
H
- h() - Method in interface cit244.api.Graphics
-
Short alias for
Graphics.height(). - HALF_PI - Static variable in class cit244.util.Mathf
-
π/2 radians, a right angle.
- hashCode() - Method in record class cit244.api.color.Color
-
Returns a hash code value for this object.
- hashCode() - Method in record class cit244.api.geom.Vec2
-
Returns a hash code value for this object.
- hashCode() - Method in record class cit244.api.image.Sprite
-
Returns a hash code value for this object.
- hashCode() - Method in record class cit244.api.image.SpriteDraw
-
Returns a hash code value for this object.
- hashCode() - Method in record class cit244.api.image.SpriteSheet
-
Returns a hash code value for this object.
- hashCode() - Method in record class cit244.app.AppConfig
-
Returns a hash code value for this object.
- height() - Method in interface cit244.api.Graphics
-
Returns height of the drawable viewport in pixels.
- height() - Method in interface cit244.api.image.Image
-
Returns the source image height.
- height() - Method in record class cit244.api.image.Sprite
-
Returns the value of the
heightrecord component. - hex(int) - Static method in record class cit244.api.color.Color
-
Creates an opaque color from a six-digit
0xRRGGBBvalue. - hex(String) - Static method in record class cit244.api.color.Color
-
Creates an opaque color from a #RRGGBB hexadecimal string.
- hsb(double, double, double) - Static method in record class cit244.api.color.Color
-
Opaque color from hue/saturation/brightness.
- hsba(double, double, double, double) - Static method in record class cit244.api.color.Color
-
HSB color with alpha 0..255.
- hsba01(double, double, double, double) - Static method in record class cit244.api.color.Color
-
HSB color with alpha 0..1.
- hudFontSize() - Method in record class cit244.app.AppConfig
-
Returns the value of the
hudFontSizerecord component. - hueDeg() - Method in record class cit244.api.color.Color
-
Hue in degrees, in [0, 360).
I
- image() - Method in record class cit244.api.image.Sprite
-
Returns the value of the
imagerecord component. - image() - Method in record class cit244.api.image.SpriteSheet
-
Returns the value of the
imagerecord component. - image(Image, double, double) - Method in interface cit244.api.Graphics
-
Draws an image at its native dimensions.
- image(Image, double, double, double, double) - Method in interface cit244.api.Graphics
-
Draws an image, resizing it to the given destination dimensions.
- Image - Interface in cit244.api.image
-
A loaded image that can be drawn whole or divided into sprites.
- index() - Method in interface cit244.api.Frame
-
Zero-based frame counter.
- info(String, String) - Method in interface cit244.api.Params
-
Displays a read-only text label in the GUI.
- info(String, String) - Method in class cit244.api.Params.NoopParams
- inOut() - Method in interface cit244.util.Curve
-
Runs this curve at double speed for the first half, then its flipped version for the second half.
- Input - Interface in cit244.api
-
Read-only mouse and keyboard state for the current frame.
- Input.Key - Enum Class in cit244.api
-
Non-character keys supported by the input API.
- Input.MouseButton - Enum Class in cit244.api
-
Mouse buttons supported by the input API.
- inverseLerp(double, double, double) - Static method in class cit244.util.Mathf
-
The reverse of
Mathf.lerp(double, double, double): given a valuevbetweenaandb, returns how far along it is (0.0 to 1.0). - isFullscreen() - Method in record class cit244.app.AppConfig
-
Returns true if this configuration uses a fullscreen window mode.
- isolate(Runnable) - Method in interface cit244.api.Graphics
-
Runs the block with isolated transform and style state.
- isolate(Consumer<Graphics>) - Method in interface cit244.api.Graphics
-
Convenience overload for isolating a block that wants the current
Graphics. - isolateStyle(Runnable) - Method in interface cit244.api.Graphics
-
Runs the block with isolated style state only.
K
- keyDown(char) - Method in interface cit244.api.Input
-
Tests whether a character key is held, ignoring letter case.
- keyDown(Input.Key) - Method in interface cit244.api.Input
-
Tests whether a special key is held.
- keyJustPressed(char) - Method in interface cit244.api.Input
-
Tests whether a character key was pressed during this frame, ignoring letter case.
- keyJustPressed(Input.Key) - Method in interface cit244.api.Input
-
Tests whether a special key was pressed during this frame.
- keyJustReleased(char) - Method in interface cit244.api.Input
-
Tests whether a character key was released during this frame, ignoring letter case.
- keyJustReleased(Input.Key) - Method in interface cit244.api.Input
-
Tests whether a special key was released during this frame.
L
- LEFT - Enum constant in enum class cit244.api.Input.Key
-
Left arrow key.
- LEFT - Enum constant in enum class cit244.api.Input.MouseButton
-
Primary mouse button.
- length() - Method in record class cit244.api.geom.Vec2
-
Returns the vector's Euclidean length (magnitude).
- lerp(double, double, double) - Static method in class cit244.util.Mathf
-
Blends between
aandb. - lerp(Color, Color, double) - Static method in record class cit244.api.color.Color
-
Blends between two colors.
- lerp(Vec2, Vec2, double) - Static method in record class cit244.api.geom.Vec2
-
Blends between two vectors.
- LIGHT_GRAY - Static variable in class cit244.api.color.Colors
-
Light gray (75% / CSS Silver).
- line(double, double, double, double) - Method in interface cit244.api.Graphics
-
Draws a line from (x1, y1) to (x2, y2).
- line(Vec2, Vec2) - Method in interface cit244.api.Graphics
-
Draws a line between two positions.
- LINEAR - Static variable in interface cit244.util.Curve
-
Returns the input unchanged.
- loadImage(String) - Method in interface cit244.api.Graphics
-
Loads an image from a file or packaged resource.
- loop(double, Sprite...) - Static method in class cit244.api.image.Animation
-
Creates an animation that repeats after its last frame.
M
- MAGENTA - Static variable in class cit244.api.color.Colors
-
RGB magenta.
- map(double, double, double, double, double) - Static method in class cit244.util.Mathf
-
Converts a value from one range to another.
- mapClamped(double, double, double, double, double) - Static method in class cit244.util.Mathf
-
Like
Mathf.map(double, double, double, double, double), but clamps the result to the output range. - Mapping - Class in cit244.util
-
An immutable mapping from one number range to another, optionally shaped by curves along the way.
- margin() - Method in record class cit244.api.image.SpriteSheet
-
Returns the value of the
marginrecord component. - margin(int) - Method in record class cit244.api.image.SpriteSheet
-
Returns a sheet with a different margin.
- Mathf - Class in cit244.util
-
Math utilities for graphics and animation.
- MIDDLE - Enum constant in enum class cit244.api.Input.MouseButton
-
Middle mouse button.
- mouseDown() - Method in interface cit244.api.Input
-
Tests whether the left mouse button is held.
- mouseDown(Input.MouseButton) - Method in interface cit244.api.Input
-
Tests whether a mouse button is held.
- mouseDragged() - Method in interface cit244.api.Input
-
Tests whether the left mouse button is dragging.
- mouseDragged(Input.MouseButton) - Method in interface cit244.api.Input
-
Tests whether a mouse-drag event occurred during this frame while the specified button was held.
- mouseDX() - Method in interface cit244.api.Input
-
Returns horizontal mouse movement since the previous frame.
- mouseDY() - Method in interface cit244.api.Input
-
Returns vertical mouse movement since the previous frame.
- mouseJustPressed() - Method in interface cit244.api.Input
-
Tests whether the left mouse button was just pressed.
- mouseJustPressed(Input.MouseButton) - Method in interface cit244.api.Input
-
Tests whether a mouse button was pressed during this frame.
- mouseJustReleased() - Method in interface cit244.api.Input
-
Tests whether the left mouse button was just released.
- mouseJustReleased(Input.MouseButton) - Method in interface cit244.api.Input
-
Tests whether a mouse button was released during this frame.
- mousePosition() - Method in interface cit244.api.Input
-
Returns the mouse position in viewport coordinates.
- mouseWheel() - Method in interface cit244.api.Input
-
Returns scroll-wheel movement accumulated during this frame.
- mouseX() - Method in interface cit244.api.Input
-
Returns the current mouse x-coordinate.
- mouseY() - Method in interface cit244.api.Input
-
Returns the current mouse y-coordinate.
N
- NO_OP - Static variable in interface cit244.api.Params
-
A no-op implementation that always returns default values.
- noFill() - Method in interface cit244.api.Graphics
-
Disables filling for subsequent shapes.
- noise(double, double) - Static method in class cit244.util.noise.Noise
-
2D noise, roughly in [-1, 1].
- noise(double, double, double) - Static method in class cit244.util.noise.Noise
-
3D noise, roughly in [-1, 1].
- Noise - Class in cit244.util.noise
-
Smooth pseudo-random noise.
- noise01(double, double) - Static method in class cit244.util.noise.Noise
-
2D noise mapped to roughly [0, 1].
- noise01(double, double, double) - Static method in class cit244.util.noise.Noise
-
3D noise mapped to roughly [0, 1].
- NoopParams() - Constructor for class cit244.api.Params.NoopParams
-
Creates a parameters view that returns defaults for all controls.
- noStroke() - Method in interface cit244.api.Graphics
-
Disables drawing outlines for subsequent shapes.
- noTint() - Method in interface cit244.api.Graphics
-
Clears the image and sprite tint for subsequent draws.
O
- of(int, int) - Static method in record class cit244.app.AppConfig
-
Convenience factory that returns a WINDOWED config with the given viewport size, based on
AppConfig.defaults(). - of(Sprite, double, double) - Static method in record class cit244.api.image.SpriteDraw
-
Creates drawing instructions at native scale with a top-left anchor, no rotation, no flipping, and no local tint.
- once(double, Sprite...) - Static method in class cit244.api.image.Animation
-
Creates an animation that holds its final frame when finished.
- OPENGL - Enum constant in enum class cit244.app.RenderMode
-
Hardware-accelerated rendering mode using OpenGL.
- ORANGE - Static variable in class cit244.api.color.Colors
-
Orange (CSS #FFA500).
P
- Params - Interface in cit244.api
-
Interface for interactive runtime parameters (sliders, toggles, buttons, etc.).
- Params.NoopParams - Class in cit244.api
-
No-op implementation for compatibility rendering mode.
- paramsFontSize() - Method in record class cit244.app.AppConfig
-
Returns the value of the
paramsFontSizerecord component. - PHI - Static variable in class cit244.util.Mathf
-
The golden ratio: (1 + sqrt(5)) / 2 ~> 1.618.
- PI - Static variable in class cit244.util.Mathf
-
π, the ratio of a circle's circumference to its diameter.
- PINGPONG - Static variable in interface cit244.util.Curve
-
Triangle wave: rises from 0 to 1 and falls back to 0, once per unit.
- PINK - Static variable in class cit244.api.color.Colors
-
Pink (CSS #FFC0CB).
- play(Animation) - Method in class cit244.api.image.AnimationPlayer
-
Plays an animation, restarting only when switching to a different animation instance.
- pmouseX() - Method in interface cit244.api.Input
-
Returns the previous frame's mouse x-coordinate.
- pmouseY() - Method in interface cit244.api.Input
-
Returns the previous frame's mouse y-coordinate.
- point(double, double) - Method in interface cit244.api.Graphics
-
Draws a single point at (x, y).
- point(Vec2) - Method in interface cit244.api.Graphics
-
Draws a point at a vector position.
- polyline(Runnable) - Method in interface cit244.api.Graphics
-
Draws a connected open polyline defined by
Graphics.vertex(double, double)orGraphics.curveVertex(double, double)calls inside the block. - PROJECT - Enum constant in enum class cit244.api.Graphics.StrokeCap
-
Squared line endings that extend past endpoints.
- PURPLE - Static variable in class cit244.api.color.Colors
-
Purple (CSS #800080).
Q
- quad(double, double, double, double, double, double, double, double) - Method in interface cit244.api.Graphics
-
Draws a quadrilateral connecting four points.
- QUARTER_PI - Static variable in class cit244.util.Mathf
-
π/4 radians, a 45-degree angle.
R
- r() - Method in record class cit244.api.color.Color
-
Returns the value of the
rrecord component. - radians(double) - Static method in class cit244.util.Mathf
-
Converts degrees to radians.
- radio(String, String[]) - Method in class cit244.api.Params.NoopParams
- radio(String, String[]) - Method in interface cit244.api.Params
-
A radio button group.
- radio(String, String[], String) - Method in class cit244.api.Params.NoopParams
- radio(String, String[], String) - Method in interface cit244.api.Params
-
A radio button group with an explicit default selection.
- radio(String, List<String>) - Method in class cit244.api.Params.NoopParams
- radio(String, List<String>) - Method in interface cit244.api.Params
-
A radio button group with options supplied as a list.
- radio(String, List<String>, String) - Method in class cit244.api.Params.NoopParams
- radio(String, List<String>, String) - Method in interface cit244.api.Params
-
A radio button group with an explicit default selection.
- rect(double, double, double, double) - Method in interface cit244.api.Graphics
-
Draws a rectangle with a top-left corner at (x, y).
- rect(Vec2, double, double) - Method in interface cit244.api.Graphics
-
Draws a rectangle at the given top-left position.
- rect(Vec2, Vec2) - Method in interface cit244.api.Graphics
-
Draws a rectangle using vectors for its position and dimensions.
- rectCenter(double, double, double, double) - Method in interface cit244.api.Graphics
-
Draws a rectangle centered at (cx, cy).
- rectCenter(Vec2, double, double) - Method in interface cit244.api.Graphics
-
Draws a rectangle centered at the given position.
- RED - Static variable in class cit244.api.color.Colors
-
RGB red.
- region(int, int, int, int) - Method in interface cit244.api.image.Image
-
Selects a rectangular region of this image.
- render(Graphics, Frame, Params, Input) - Method in interface cit244.api.Sketch
-
Renders one frame of the sketch.
- renderMode() - Method in record class cit244.app.AppConfig
-
Returns the value of the
renderModerecord component. - RenderMode - Enum Class in cit244.app
-
Rendering backend used by the application.
- REPEAT - Static variable in interface cit244.util.Curve
-
Sawtooth wave: rises from 0 toward 1, then jumps back to 0, once per unit.
- reset(double) - Method in class cit244.util.Damped
-
Jumps straight to a value, with no smoothing.
- restart(Animation) - Method in class cit244.api.image.AnimationPlayer
-
Starts an animation from its first frame, even if it is already playing.
- rgb(double, double, double) - Static method in record class cit244.api.color.Color
-
Opaque RGB color.
- rgba(double, double, double, double) - Static method in record class cit244.api.color.Color
-
RGB color, with alpha 0..255.
- RIGHT - Enum constant in enum class cit244.api.Input.Key
-
Right arrow key.
- RIGHT - Enum constant in enum class cit244.api.Input.MouseButton
-
Secondary mouse button.
- rotate(double) - Method in interface cit244.api.Graphics
-
Rotates the coordinate system around the current origin (0, 0).
- rotate(double) - Method in record class cit244.api.image.SpriteDraw
-
Sets clockwise rotation about the anchor.
- rotated(double, Runnable) - Method in interface cit244.api.Graphics
-
Runs
bodyafter rotating by radians, then restores the previous state. - rotatedAt(double, double, double, Runnable) - Method in interface cit244.api.Graphics
-
Runs
bodywith its origin translated to (cx, cy) and rotated. - rotation() - Method in record class cit244.api.image.SpriteDraw
-
Returns the value of the
rotationrecord component. - ROUND - Enum constant in enum class cit244.api.Graphics.StrokeCap
-
Rounded line endings.
- run(Sketch) - Static method in class cit244.app.SketchApp
-
Launches with default settings.
- run(Sketch, int, int) - Static method in class cit244.app.SketchApp
-
Launches with a custom viewport size.
- run(Sketch, AppConfig) - Static method in class cit244.app.SketchApp
-
Launches with a full config.
- runCompat(Sketch) - Static method in class cit244.app.SketchApp
-
Launches in safe mode (compatibility rendering).
- runCompat(Sketch, int, int) - Static method in class cit244.app.SketchApp
-
Launches in safe mode with a custom viewport size.
- runCompat(Sketch, AppConfig) - Static method in class cit244.app.SketchApp
-
Launches in safe mode with a full config.
S
- saturation01() - Method in record class cit244.api.color.Color
-
Saturation (0 to 1).
- scale() - Method in record class cit244.api.image.SpriteDraw
-
Returns the value of the
scalerecord component. - scale(double) - Method in interface cit244.api.Graphics
-
Scales the coordinate system uniformly in both dimensions.
- scale(double) - Method in record class cit244.api.image.SpriteDraw
-
Sets the uniform drawing scale.
- scale(double, double) - Method in interface cit244.api.Graphics
-
Scales the coordinate system independently in x and y.
- scaled(double) - Method in record class cit244.api.geom.Vec2
-
Multiplies both components by a scalar.
- scaled(double, Runnable) - Method in interface cit244.api.Graphics
-
Runs
bodyafter scaling uniformly byfactor, then restores the previous state. - scaledAt(double, double, double, Runnable) - Method in interface cit244.api.Graphics
-
Runs
bodyafter translating to (cx, cy) and uniformly scaling the coordinate system. - scaledBy(double) - Method in record class cit244.api.image.SpriteDraw
-
Multiplies the current scale by a factor.
- scene() - Method in interface cit244.api.Graphics
-
Current scene index selected by the user (typically 1..9).
- setup(Graphics) - Method in interface cit244.api.Sketch
-
Initializes sketch resources before rendering begins.
- shearX(double) - Method in interface cit244.api.Graphics
-
Shears the coordinate system along the x-axis.
- shearY(double) - Method in interface cit244.api.Graphics
-
Shears the coordinate system along the y-axis.
- SHIFT - Enum constant in enum class cit244.api.Input.Key
-
Shift modifier key.
- shiftBrightness(double) - Method in record class cit244.api.color.Color
-
Returns a copy with brightness changed by
delta01. - shiftHue(double) - Method in record class cit244.api.color.Color
-
Returns a copy with hue rotated by
deltaDegrees. - shiftSaturation(double) - Method in record class cit244.api.color.Color
-
Returns a copy with saturation changed by
delta01. - SINE - Static variable in interface cit244.util.Curve
-
Sine wave between 0 and 1, once per unit.
- Sketch - Interface in cit244.api
-
Base interface for all framework sketches.
- SketchApp - Class in cit244.app
-
Entry point for sketches (fractal art, synth visualizers, etc.).
- slider(String, double) - Method in class cit244.api.Params.NoopParams
- slider(String, double) - Method in interface cit244.api.Params
-
A floating-point slider with a default value and no explicit bounds.
- slider(String, double, double, double) - Method in class cit244.api.Params.NoopParams
- slider(String, double, double, double) - Method in interface cit244.api.Params
-
A floating-point slider with a default value and explicit bounds.
- sliderInt(String, int) - Method in class cit244.api.Params.NoopParams
- sliderInt(String, int) - Method in interface cit244.api.Params
-
An integer slider with a default value and no explicit bounds.
- sliderInt(String, int, int, int) - Method in class cit244.api.Params.NoopParams
- sliderInt(String, int, int, int) - Method in interface cit244.api.Params
-
An integer slider with a default value and explicit bounds.
- smoothingFactor(double, double) - Static method in class cit244.util.Mathf
-
Computes the interpolation factor for exponential damping over one time step.
- SMOOTHSTEP - Static variable in interface cit244.util.Curve
-
Starts gently, speeds up, then eases to a stop.
- spacing() - Method in record class cit244.api.image.SpriteSheet
-
Returns the value of the
spacingrecord component. - spacing(int) - Method in record class cit244.api.image.SpriteSheet
-
Returns a sheet with different spacing between cells.
- sprite() - Method in record class cit244.api.image.SpriteDraw
-
Returns the value of the
spriterecord component. - sprite(SpriteDraw) - Method in interface cit244.api.Graphics
-
Draws a sprite using its position, anchor, scale, rotation, flips, and optional tint.
- sprite(Sprite, double, double) - Method in interface cit244.api.Graphics
-
Draws a sprite at its native dimensions.
- sprite(Sprite, double, double, double, double) - Method in interface cit244.api.Graphics
-
Draws a region of an image at the given destination dimensions.
- Sprite - Record Class in cit244.api.image
-
A rectangular region of an
Image, measured in source-image pixels. - Sprite(Image, int, int, int, int) - Constructor for record class cit244.api.image.Sprite
-
Checks that the selected region fits inside the source image.
- SpriteDraw - Record Class in cit244.api.image
-
Immutable instructions for drawing a
Spriteat a particular position. - SpriteDraw(Sprite, double, double, double, double, double, double, boolean, boolean, Color) - Constructor for record class cit244.api.image.SpriteDraw
-
Requires a sprite, finite coordinates and transforms, and nonnegative scale.
- SpriteSheet - Record Class in cit244.api.image
-
A regular grid of sprite regions within an image.
- SpriteSheet(Image, int) - Constructor for record class cit244.api.image.SpriteSheet
-
Creates a grid of square cells without margins or spacing.
- SpriteSheet(Image, int, int) - Constructor for record class cit244.api.image.SpriteSheet
-
Creates a grid without margins or spacing.
- SpriteSheet(Image, int, int, int, int) - Constructor for record class cit244.api.image.SpriteSheet
-
Checks the dimensions, margin, and spacing.
- square(double, double, double) - Method in interface cit244.api.Graphics
-
Draws a square with a top-left corner at (x, y).
- SQUARE - Enum constant in enum class cit244.api.Graphics.StrokeCap
-
Squared line endings (flush).
- State and isolation - Search tag in interface cit244.api.Graphics
- Section
- stroke(double) - Method in interface cit244.api.Graphics
-
Sets the stroke (outline) color to a grayscale value.
- stroke(double, double) - Method in interface cit244.api.Graphics
-
Sets the stroke (outline) color to a grayscale value.
- stroke(double, double, double) - Method in interface cit244.api.Graphics
-
Sets the stroke (outline) color for subsequent shapes.
- stroke(double, double, double, double) - Method in interface cit244.api.Graphics
-
Sets the stroke (outline) color for subsequent shapes.
- stroke(Color) - Method in interface cit244.api.Graphics
-
Sets the stroke (outline)
Colorfor subsequent shapes. - strokeCap(Graphics.StrokeCap) - Method in interface cit244.api.Graphics
-
Sets the stroke end-cap style for subsequent stroked drawing operations.
- strokeWeight(double) - Method in interface cit244.api.Graphics
-
Sets the stroke width in pixels.
- subtract(Vec2) - Method in record class cit244.api.geom.Vec2
-
Subtracts another vector component-wise.
T
- TEAL - Static variable in class cit244.api.color.Colors
-
Teal (CSS #008080).
- text(double, double, String) - Method in interface cit244.api.Graphics
-
Draws text at (x, y) with the default size of 16 pixels.
- text(double, double, String, double) - Method in interface cit244.api.Graphics
-
Draws text at (x, y), with y specifying the text baseline.
- then(Curve) - Method in interface cit244.util.Curve
-
Runs this curve first, then feeds its result into
next. - through(Curve) - Method in class cit244.util.Mapping
-
Adds a curve that shapes progress before it is scaled to the output range.
- tileH() - Method in record class cit244.api.image.SpriteSheet
-
Returns the value of the
tileHrecord component. - tileW() - Method in record class cit244.api.image.SpriteSheet
-
Returns the value of the
tileWrecord component. - time() - Method in interface cit244.api.Frame
-
Seconds elapsed since the start of the sketch.
- tint() - Method in record class cit244.api.image.SpriteDraw
-
Returns the value of the
tintrecord component. - tint(double, double, double, double) - Method in interface cit244.api.Graphics
-
Sets a color multiplier for subsequently drawn images and sprites.
- tint(Color) - Method in interface cit244.api.Graphics
-
Sets the tint for images and sprites.
- tint(Color) - Method in record class cit244.api.image.SpriteDraw
-
Sets a local image tint, including alpha.
- title() - Method in record class cit244.app.AppConfig
-
Returns the value of the
titlerecord component. - to(double, double) - Method in class cit244.util.Mapping
-
Sets the output range.
- toggle(String, boolean) - Method in class cit244.api.Params.NoopParams
- toggle(String, boolean) - Method in interface cit244.api.Params
-
A boolean toggle (checkbox).
- toString() - Method in record class cit244.api.color.Color
-
Returns a string representation of this record class.
- toString() - Method in record class cit244.api.geom.Vec2
-
Returns a string representation of this record class.
- toString() - Method in record class cit244.api.image.Sprite
-
Returns a string representation of this record class.
- toString() - Method in record class cit244.api.image.SpriteDraw
-
Returns a string representation of this record class.
- toString() - Method in record class cit244.api.image.SpriteSheet
-
Returns a string representation of this record class.
- toString() - Method in record class cit244.app.AppConfig
-
Returns a string representation of this record class.
- translate(double, double) - Method in interface cit244.api.Graphics
-
Offsets the coordinate system by the given amount.
- translate(double, double) - Method in record class cit244.api.image.SpriteDraw
-
Moves the anchor by a displacement in screen coordinates, not along the sprite's rotated local axes.
- translate(Vec2) - Method in interface cit244.api.Graphics
-
Translates the coordinate system by a vector.
- translate(Vec2) - Method in record class cit244.api.image.SpriteDraw
-
Moves the anchor by a displacement in screen coordinates.
- translated(double, double) - Method in record class cit244.api.geom.Vec2
-
Returns this vector displaced by the given horizontal and vertical amounts.
- triangle(double, double, double, double, double, double) - Method in interface cit244.api.Graphics
-
Draws a triangle connecting three points.
- TWO_PI - Static variable in class cit244.util.Mathf
-
2π radians, one complete revolution.
U
- UP - Enum constant in enum class cit244.api.Input.Key
-
Up arrow key.
- update(double) - Method in class cit244.api.image.AnimationPlayer
-
Advances playback and returns the current sprite.
- update(double, double) - Method in class cit244.util.Damped
-
Moves the value toward a target.
V
- value() - Method in class cit244.util.Damped
-
Returns the current value without moving it.
- valueOf(String) - Static method in enum class cit244.api.Graphics.StrokeCap
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cit244.api.Input.Key
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cit244.api.Input.MouseButton
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cit244.app.RenderMode
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class cit244.app.WindowMode
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class cit244.api.Graphics.StrokeCap
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cit244.api.Input.Key
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cit244.api.Input.MouseButton
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cit244.app.RenderMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class cit244.app.WindowMode
-
Returns an array containing the constants of this enum class, in the order they are declared.
- Vec2 - Record Class in cit244.api.geom
-
An immutable two-dimensional vector, also usable as a position.
- Vec2(double, double) - Constructor for record class cit244.api.geom.Vec2
-
Constructs a vector from its two components.
- vertex(double, double) - Method in interface cit244.api.Graphics
-
Adds a point to the current shape.
- vertex(Vec2) - Method in interface cit244.api.Graphics
-
Adds a vertex at the given position to the current shape.
- viewportH() - Method in record class cit244.app.AppConfig
-
Returns the value of the
viewportHrecord component. - viewportW() - Method in record class cit244.app.AppConfig
-
Returns the value of the
viewportWrecord component.
W
- w() - Method in interface cit244.api.Graphics
-
Short alias for
Graphics.width(). - What each value means - Search tag in interface cit244.api.Frame
- Section
- WHITE - Static variable in class cit244.api.color.Colors
-
Opaque white.
- width() - Method in interface cit244.api.Graphics
-
Returns width of the drawable viewport in pixels.
- width() - Method in interface cit244.api.image.Image
-
Returns the source image width.
- width() - Method in record class cit244.api.image.Sprite
-
Returns the value of the
widthrecord component. - windowed(int, int) - Method in record class cit244.app.AppConfig
-
Returns a copy of this config set to WINDOWED with the given viewport size.
- WINDOWED - Enum constant in enum class cit244.app.WindowMode
-
Standard fixed-size window.
- windowMode() - Method in record class cit244.app.AppConfig
-
Returns the value of the
windowModerecord component. - WindowMode - Enum Class in cit244.app
-
Window display mode used when launching the application.
- Window size and renderer - Search tag in Overview
- Section
- withA(double) - Method in record class cit244.api.color.Color
-
Returns a copy with the alpha channel changed.
- withB(double) - Method in record class cit244.api.color.Color
-
Returns a copy with the blue channel changed.
- withFontSizes(int, int) - Method in record class cit244.app.AppConfig
-
Returns a copy with both parameter and HUD font sizes updated.
- withG(double) - Method in record class cit244.api.color.Color
-
Returns a copy with the green channel changed.
- withHudFontSize(int) - Method in record class cit244.app.AppConfig
-
Returns a copy with the HUD font size updated.
- withOpacity(double) - Method in record class cit244.api.color.Color
-
Returns a copy with normalized opacity.
- withParamsFontSize(int) - Method in record class cit244.app.AppConfig
-
Returns a copy with the parameter UI font size updated.
- withR(double) - Method in record class cit244.api.color.Color
-
Returns a copy with the red channel changed.
- withRenderMode(RenderMode) - Method in record class cit244.app.AppConfig
-
Returns a copy with the render mode updated.
- withTitle(String) - Method in record class cit244.app.AppConfig
-
Returns a copy with the window title updated.
- wrap(double, double) - Static method in class cit244.util.Mathf
-
Returns x wrapped into [0, period). period must be > 0.
- wrapDegrees(double) - Static method in class cit244.util.Mathf
-
Returns degrees wrapped into [0, 360).
X
- x() - Method in record class cit244.api.geom.Vec2
-
Returns the value of the
xrecord component. - x() - Method in record class cit244.api.image.Sprite
-
Returns the value of the
xrecord component. - x() - Method in record class cit244.api.image.SpriteDraw
-
Returns the value of the
xrecord component.
Y
- y() - Method in record class cit244.api.geom.Vec2
-
Returns the value of the
yrecord component. - y() - Method in record class cit244.api.image.Sprite
-
Returns the value of the
yrecord component. - y() - Method in record class cit244.api.image.SpriteDraw
-
Returns the value of the
yrecord component. - YELLOW - Static variable in class cit244.api.color.Colors
-
RGB yellow.
Z
- ZERO - Static variable in record class cit244.api.geom.Vec2
-
The zero vector, with both components equal to zero.
All Classes and Interfaces|All Packages|Constant Field Values