MarkingStyle型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
How a marking is made. Everything has a default.
インポート
import type { MarkingStyle } from "@johnmorrisdotca/uchusen-rockets";
定義
interface MarkingStyle {
ink?: MaterialName;
weight?: number;
face?: FaceName;
tracking?: number;
thickness?: number;
lift?: number;
detail?: number;
lines?: boolean;
frame?: boolean | {
pad?: number;
line?: number;
};
field?: MaterialName | {
material: MaterialName;
pad?: number;
raise?: number;
below?: number;
};
inline?: MaterialName;
outline?: {
material: MaterialName;
width?: number;
};
onField?: number;
flood?: boolean | "beside";
worn?: boolean;
}
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
ink (省略可) | "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" | undefined | The paint, a material name; |
weight (省略可) | number | undefined | How much each letter is made bolder, in capital heights added to each side of a stem; 0.016 by default, 0 for the face as drawn. |
face (省略可) | "michroma" | "orbitron" | "oxanium" | "goldman" | undefined | The face the Latin letters are drawn in: |
tracking (省略可) | number | undefined | The extra space between letters, in capital heights; each face has its own default (0.14 for Michroma). |
thickness (省略可) | number | undefined | How thick the paint stands, in metres; the default grows with the letters. |
lift (省略可) | number | undefined | How far the paint stands off the surface before its own thickness, in metres; the default clears the curve and the hull's flats. |
detail (省略可) | number | undefined | 0.25 to 1: fewer points in each outline at a low level. 1 by default. |
lines (省略可) | boolean | undefined | Draw each letter's outline as lines too, which is what the line and thick looks show; true by default. |
frame (省略可) | boolean | { pad?: number; line?: number; } | undefined | A painted border round the text, as stencils have; |
field (省略可) | "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" | { material: MaterialName; pad?: number; raise?: number; below?: number; } | undefined | A smooth raised plate under the text, standing out of the plating and the stringers: a material, or |
inline (省略可) | "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" | undefined | A thin line inside the edge of every letter in this material, which makes dark lettering read as outlined: set in 0.04 capital heights from the edge, 0.025 wide. |
outline (省略可) | { material: MaterialName; width?: number; } | undefined | A heavier outline round the outside of every letter, in this material and this wide (capital heights): |
onField (省略可) | number | undefined | The paint stands on a plate this many metres proud that another marking laid (a second line on the same field). |
flood (省略可) | boolean | "beside" | undefined | Floodlights, which glow in the Lit look. |
worn (省略可) | boolean | undefined | Faded patches in the letter paint, the same on every letter: a property of the paint, not of the light. |
例
import type { MarkingStyle } from "@johnmorrisdotca/uchusen-rockets";
const style: MarkingStyle = { ink: "black", weight: 0.016, tracking: 0.14, frame: true };
console.log(style.ink);black出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。