maskOf関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The outline a raster shape is cut with.
インポート
import { maskOf } from "@johnmorrisdotca/meikyuu";
定義
function maskOf(shape: MeikyuuShape): Mask
引数
| 名前 | 型 | 説明 |
|---|---|---|
shape | "square" | "circle" | "hex" | "triangle" | "heart" | "leaf" | "star" | "ring" | "diamond" | "cross" | "moon" | "hexagon" | "pyramid" | The supported native flat-grid geometry or cut-out shape. |
戻り値
Mask
The outline a raster shape is cut with.
例
import { maskOf } from "@johnmorrisdotca/meikyuu";
console.log(maskOf("heart")(0.5,0.5));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。