Log inGet started
World

Torque Valley: Driving, Drift and Crash Sandbox

README.md

gaugeClusters.gauges

The gauge cluster pipeline and its module API. show(style, car?, opts?) puts a cluster on screen without a component (it follows the local player's car when car is nil), setStyle, setCar, hide, state, styles. GaugeCluster and GaugeGallery build on its parts: view turns a reader Reading into what a style draws (smoothed needles, units, dial ranges, the redline fraction, blink and gear-pop timers), scaleFor fits a style to the screen and safe area (phones get nearly the full width), place wraps a cluster in a full-screen, safe-area root at an anchor, and frame does all of it for one car.

local Gauges = require("gaugeClusters.gauges")
Gauges.show("hud", nil, { units = "mph" })
Gauges.setStyle("retro80s")
Gauges.hide()