Reference · Rockets, variants, parts and the fit check
hazardMarkingfunction
Diagonal warning stripes of black and warning yellow in a box, for a hatch frame, a swing area or the edge of a gantry: width metres along the text, place.height metres tall, stripes at 45 degrees.
Import it
import { hazardMarking } from "@johnmorrisdotca/uchusen-rockets";
Definition
function hazardMarking(place: MarkingPlace, width: number, style?: MarkingStyle): Piece[]
Parameters
| Name | Type | Description |
|---|---|---|
place | MarkingPlace | The place of the box; |
width | number | How long the box is, in metres. |
style (optional) | MarkingStyle |
|
Returns
Piece[]
The pieces.
Examples
import { hazardMarking } from "@johnmorrisdotca/uchusen-rockets";
console.log(hazardMarking({ radius: 6.7, y: 3, az: 0, height: 0.5, align: "middle" }, 4).length > 4);trueWhat it prints (run when this page was built)