dimsForUncertaintyfunction
Whether the "show uncertainty" look draws a star dimmer: a grade C star (a rough or missing distance) is, grades A and B are not.
Import it
import { dimsForUncertainty } from "@johnmorrisdotca/hoshi-stars/chart";
Definition
function dimsForUncertainty(star: Star): boolean
Parameters
| Name | Type | Description |
|---|---|---|
star | Star | A bright star. |
Returns
boolean
true for grade C.
Examples
import { starByName } from "@johnmorrisdotca/hoshi-stars";
import { dimsForUncertainty } from "@johnmorrisdotca/hoshi-stars/chart";
console.log(dimsForUncertainty(starByName("Sirius")!), dimsForUncertainty(starByName("Rigel")!)); // false truefalse trueWhat it prints (run when this page was built)