HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/linde-ai/html/node_modules/colord/colord.d.ts
import { AnyColor, RgbaColor, HslaColor, HsvaColor } from "./types";
export declare class Colord {
    private readonly parsed;
    readonly rgba: RgbaColor;
    constructor(input: AnyColor);
    /**
     * Returns a boolean indicating whether or not an input has been parsed successfully.
     * Note: If parsing is unsuccessful, Colord defaults to black (does not throws an error).
     */
    isValid(): boolean;
    /**
     * Returns the brightness of a color (from 0 to 1).
     * The calculation logic is modified from WCAG.
     * https://www.w3.org/TR/AERT/#color-contrast
     */
    brightness(): number;
    /**
     * Same as calling `brightness() < 0.5`.
     */
    isDark(): boolean;
    /**
     * Same as calling `brightness() >= 0.5`.
     * */
    isLight(): boolean;
    /**
     * Returns the hexadecimal representation of a color.
     * When the alpha channel value of the color is less than 1,
     * it outputs #rrggbbaa format instead of #rrggbb.
     */
    toHex(): string;
    /**
     * Converts a color to RGB color space and returns an object.
     * Always includes an alpha value from 0 to 1.
     */
    toRgb(): RgbaColor;
    /**
     * Converts a color to RGB color space and returns a string representation.
     * Outputs an alpha value only if it is less than 1.
     */
    toRgbString(): string;
    /**
     * Converts a color to HSL color space and returns an object.
     * Always includes an alpha value from 0 to 1.
     */
    toHsl(): HslaColor;
    /**
     * Converts a color to HSL color space and returns a string representation.
     * Always includes an alpha value from 0 to 1.
     */
    toHslString(): string;
    /**
     * Converts a color to HSV color space and returns an object.
     * Always includes an alpha value from 0 to 1.
     */
    toHsv(): HsvaColor;
    /**
     * Creates a new instance containing an inverted (opposite) version of the color.
     */
    invert(): Colord;
    /**
     * Increases the HSL saturation of a color by the given amount.
     */
    saturate(amount?: number): Colord;
    /**
     * Decreases the HSL saturation of a color by the given amount.
     */
    desaturate(amount?: number): Colord;
    /**
     * Makes a gray color with the same lightness as a source color.
     */
    grayscale(): Colord;
    /**
     * Increases the HSL lightness of a color by the given amount.
     */
    lighten(amount?: number): Colord;
    /**
     * Increases the HSL lightness of a color by the given amount.
     */
    darken(amount?: number): Colord;
    /**
     * Changes the HSL hue of a color by the given amount.
     */
    rotate(amount?: number): Colord;
    /**
     * Allows to get or change an alpha channel value.
     */
    alpha(): number;
    alpha(value: number): Colord;
    /**
     * Allows to get or change a hue value.
     */
    hue(): number;
    hue(value: number): Colord;
    /**
     * Determines whether two values are the same color.
     */
    isEqual(color: AnyColor | Colord): boolean;
}
/**
 * Parses the given input color and creates a new `Colord` instance.
 * See accepted input formats: https://github.com/omgovich/colord#color-parsing
 */
export declare const colord: (input: AnyColor | Colord) => Colord;