Skip to content

five-on-it / packages/world/src/road-paint

packages/world/src/road-paint ​

The paint on a level's paved roads, as a function of the level: edge lines, the centre line (dashed white on a two-lane road, solid yellow between two carriageways of two lanes or more) and dashed lane lines (a highway's edge lines a hard shoulder in), laid in steps of a metre a little above the road's points. A line stops where it enters another road, so a junction is clear of paint, and gives way to the level's own paint (a zebra crossing, a stop line, a grate, a cycle lane: audit/paint.ts): no step of a line lies over it. The client draws what this returns (apps/client/src/renderer/roads.ts); the audit holds the level's own paint to never lie over itself.

Interfaces ​

Functions ​