Skip to content

five-on-it / apps/client/src/renderer/car-lights / CAR_LIGHTS

Variable: CAR_LIGHTS ​

const CAR_LIGHTS: object

Defined in: apps/client/src/renderer/car-lights.ts:25

How the cars' lights are drawn.

Type Declaration ​

beam ​

readonly beam: 0.22 = 0.22

The strength of one beam at night (the two of a car overlap ahead of it).

capacity ​

readonly capacity: 96 = 96

The cars lit at once, at most.

flying ​

readonly flying: 4 = 4

A car this far over the ground under its nose (m) throws no light on it: it flies.

from ​

readonly from: 0.15 = 0.15

The cars drive with their lights on from this dark (0 by day, 1 at night).

inset ​

readonly inset: 0.3 = 0.3

How far in from the car's side a headlight sits (m).

length ​

readonly length: 15 = 15

A headlight's beam on the road: how far it reaches and how wide it is at its far end (m).

lift ​

readonly lift: 0.09 = 0.09

How far over the ground the patches are drawn (m).

slope ​

readonly slope: 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 ​

readonly tail: 0.26 = 0.26

tailBeside ​

readonly tailBeside: 0.8 = 0.8

tailLength ​

readonly tailLength: 3.4 = 3.4

The glow behind the tail lamps: how far it reaches, how far past the car's sides, its strength.

width ​

readonly width: 5.5 = 5.5