textalive-app-api - v0.5.2
    Preparing search index...

    Interface IColor

    色情報

    Color info

    interface IColor {
        a: number;
        argb: string;
        b: number;
        cssRgb: string;
        cssRgba: string;
        g: number;
        r: number;
        rgb: string;
        rgba: string;
        value: number;
        eq(color: IColor): boolean;
        from(color: string | number | IColor): void;
        fromNumber(val: number, withAlpha?: boolean): void;
        fromString(color: string): void;
        toString(withAlpha?: boolean): string;
    }

    Implemented by

    Index
    a: number

    透明度 / Alpha

    argb: string

    色情報の16進数表現 (ARGB; e.g., 0x00112233) / Hex string (ARGB; e.g., 0x00112233)

    b: number

    青 / Blue

    cssRgb: string

    色情報のCSS互換表現 (RGB; e.g., rgba(17,34,51)) / Color info in CSS-compatible format (RGB; e.g., rgba(17,34,51))

    cssRgba: string

    色情報のCSS互換表現 (RGBA; e.g., rgba(17,34,51,0)) / Color info in CSS-compatible format (RGBA; e.g., rgba(17,34,51,0))

    g: number

    緑 / Green

    r: number

    赤 / Red

    rgb: string

    色情報の16進数表現 (RGB) / Hex string (RGB)

    rgba: string

    色情報の16進数表現 (RGBA; e.g., #11223300) / Hex string (RGBA; e.g., #11223300)

    value: number

    色情報の 32 bit 表現 / Color info in 32 bit integer

    • Parameters

      • color: IColor

        色情報 / Color

      Returns boolean

      色情報が一致するか否か / Whether the specified color info matches the current info

    • 色情報をセットする

      Set color info

      Parameters

      • color: string | number | IColor

        色情報 / Information source

      Returns void

    • 色情報をセットする

      Set color info

      Parameters

      • val: number

        色情報の数値表現 (32 bit ARGB または 24 bit RGB) / Information source in number (32 bit ARGB or 24 bit RGB)

      • OptionalwithAlpha: boolean

        透明度付きか否か / Whether alpha value is included or not

      Returns void

    • 16進数で表された文字情報の色情報をセットする

      Set color info (Hex string RGB or RGBA e.g., #123 or #11223300)

      Parameters

      • color: string

        色情報の文字列表現 / Information source in string

      Returns void

    • 色情報の文字列表現を得る

      Retrieve string representation of this color info

      Parameters

      • OptionalwithAlpha: boolean

        透明度付きにするか否か / Whether to include alpha value or not

      Returns string