What problem does it solve?
LÖVE game development often requires a broad set of mathematical utilities, from color conversions and random generation to geometry and transform handling. This Skill bundles essential math utilities into a cohesive API accessible via love.math and related types, streamlining gameplay programming.
Core Features & Use Cases
-
Color conversions: colorFromBytes, colorToBytes, gammaToLinear, linearToGamma for consistent color math and rendering.
-
Random numbers & noise: random, randomNormal, getRandomSeed, getRandomState, noise for procedural content and variability.
-
Geometry & transforms: isConvex, newBezierCurve, Transform operations, and 2D geometry helpers for pathing and UI.
-
Use Case: Build a procedural terrain using love.math.noise, generate NPC patrols with random seeds, and convert color spaces for post-processing.
Quick Start
Compute a 1D noise value at x=0.5 with seed 42 and map it to 0..1.