Options.ToOptions
import type { Options } from "https://raw.githubusercontent.com/i-xi-dev/color.es/5.2.10/src/options.ts";
const { ToOptions } = Options;
The object with the following optional fields.
discardAlpha
: Whether to discarda
(alpha). The default isfalse
.omitAlphaIfOpaque
: Whether to omita
(alpha) if alpha equals1
. The default isfalse
.
type ToOptions = {
discardAlpha?: boolean;
omitAlphaIfOpaque?: boolean;
};