fcharts-js - v0.3.0
    Preparing search index...

    Interface Rgba

    WCAG contrast math — hand-rolled, zero dependencies.

    Implements the WCAG 2.x relative-luminance and contrast-ratio definitions, plus a color parser (hex / rgb() / rgba()) and alpha compositing so low-opacity colors (grid lines, faded text) can be measured against a known background. Pure; unit-tested under node:test.

    interface Rgba {
        a: number;
        b: number;
        g: number;
        r: number;
    }
    Index

    Properties

    a b g r

    Properties

    a: number

    0..1; 1 = opaque.

    b: number
    g: number
    r: number