リファレンス · データの入口(自分で用意した地球の地図や軌道データを、ライセンスと出典つきのソースとして渡し、いま画面にあるのは誰のデータかを示します)
samplesAreBlank関数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
True when every sampled pixel is black, which is the picture the service returns for a day it has no swath for (a 200, not a 404).
インポート
import { samplesAreBlank } from "@johnmorrisdotca/chikyu-earth/door";
定義
function samplesAreBlank(pixels: Uint8ClampedArray): boolean
引数
| 名前 | 型 | 説明 |
|---|---|---|
pixels | Uint8ClampedArray<ArrayBufferLike> | RGBA bytes. |
戻り値
boolean
Whether every pixel is black.
例
import { samplesAreBlank } from "@johnmorrisdotca/chikyu-earth/door";
console.log(samplesAreBlank(new Uint8ClampedArray([0, 0, 0, 255])));true出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。