five-on-it / apps/client/src/renderer/car-lights / CAR_LIGHTS
Variable: CAR_LIGHTS
constCAR_LIGHTS:object
Defined in: apps/client/src/renderer/car-lights.ts:25
How the cars' lights are drawn.
Type Declaration
beam
readonlybeam:0.22=0.22
The strength of one beam at night (the two of a car overlap ahead of it).
capacity
readonlycapacity:96=96
The cars lit at once, at most.
flying
readonlyflying:4=4
A car this far over the ground under its nose (m) throws no light on it: it flies.
from
readonlyfrom:0.15=0.15
The cars drive with their lights on from this dark (0 by day, 1 at night).
inset
readonlyinset:0.3=0.3
How far in from the car's side a headlight sits (m).
length
readonlylength:15=15
A headlight's beam on the road: how far it reaches and how wide it is at its far end (m).
lift
readonlylift:0.09=0.09
How far over the ground the patches are drawn (m).
slope
readonlyslope:0.35=0.35
The most a patch leans with the ground it lies on (rise over run): steeper, it is a wall or a drop.
tail
readonlytail:0.26=0.26
tailBeside
readonlytailBeside:0.8=0.8
tailLength
readonlytailLength:3.4=3.4
The glow behind the tail lamps: how far it reaches, how far past the car's sides, its strength.
width
readonlywidth:5.5=5.5