CoverMasktype
How a page says that a spot of its screen is covered by a body in front of the sky (the Earth, a planet, a panel): true where a star would not be seen.
Import it
import type { CoverMask } from "@johnmorrisdotca/hoshi-stars/sky-labels";
Definition
type CoverMask = (x: number, y: number) => boolean;
Examples
import type { CoverMask } from "@johnmorrisdotca/hoshi-stars/sky-labels";
const belowTheHorizon: CoverMask = (_x, y) => y > 500;
console.log(belowTheHorizon(10, 600));trueWhat it prints (run when this page was built)