Table of Contents

Namespace Gloam.Core.Primitives

Classes

Colors

Provides predefined color constants for common colors

Structs

Color

Represents a color with red, green, blue, and alpha components (RGBA format)

Direction

Represents a direction in 2D space using 8-directional movement (cardinal and diagonal directions).

Position

Represents a position in 2D space with both discrete grid coordinates and continuous offsets for smooth movement.

Rectangle

Represents a rectangle with integer coordinates optimized for roguelike grid-based operations. Follows KISS principles with minimal overhead and high performance for frequent allocations.

Size

Represents a size in 2D space with width and height dimensions

TileVisual

Represents a visual tile with glyph, colors, and text styling for tile-based rendering