stripeMarking関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
A plain band of paint: width metres along the text and place.height metres across, in one material. A pinstripe is a thin one.
インポート
import { stripeMarking } from "@johnmorrisdotca/uchusen-rockets";
定義
function stripeMarking(place: MarkingPlace, width: number, material: MaterialName, style?: MarkingStyle): Piece[]
引数
| 名前 | 型 | 説明 |
|---|---|---|
place | MarkingPlace | Where; |
width | number | How long the band is, in metres. |
material | "fin" | "deck" | "white" | "tile" | "dark" | "bell" | "foam" | "steel" | "tile-plain" | "soot" | "bell-inside" | "engine-metal" | "engine-pale" | "fin-dark" | "black" | "ink-worn" | "gold" | "solar" | "glass" | "blue" | "yellow" | "concrete" | "ground" | "sand" | "water" | "red" | "hull-white" | "hull-white-worn" | "hull-orange" | "hull-orange-worn" | "hull-dawn" | "hull-dawn-worn" | "hull-yellow" | "hull-grey" | "hull-grey-dark" | "hull-blue" | "panel-dark" | "coolant" | "blanket" | "copper" | "coil" | "radiator" | "radiator-hot" | "hazard" | "frost" | "lamp-amber" | "lamp-blue" | "lamp-red" | "plant" | "fuel" | "core" | "blanket-worn" | "foil" | "kapton" | "pipe-steel" | "window" | "coil-lit" | "nav-red" | "nav-green" | "nav-white" | "strobe" | "beacon" | "flood" | "light-pool" | "light-pool-mid" | "light-pool-edge" | "halo-port" | "halo-port-soft" | "halo-starboard" | "halo-starboard-soft" | "halo-stern" | "halo-stern-soft" | "halo-strobe" | "halo-strobe-soft" | "halo-beacon" | "halo-beacon-soft" | "halo-window" | "glass-clear" | "sky-wash" | "grow-lamp" | "leaf" | "soil" | "fabric" | "wood" | "lawn" | "lawn-dark" | "meadow" | "shrub" | "bark" | "flower" | "crop-gold" | "crop-green" | "water-clear" | The paint. |
style (省略可) | MarkingStyle | Only |
戻り値
Piece[]
The pieces.
例
import { stripeMarking } from "@johnmorrisdotca/uchusen-rockets";
console.log(stripeMarking({ radius: 6.7, y: 3, az: 0, height: 0.1, align: "middle" }, 8, "red").length > 0);true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。