all files / src/color-expression-converter/parts/ color.js

63.64% Statements 7/11
100% Branches 2/2
50% Functions 1/2
42.86% Lines 3/7
3 statements, 1 function, 2 branches Ignored     
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30                                                       
/**
 * 色表現の情報を保持します。
 */
class Color {
    /**
     * インスタンスを初期化します。
     */
    constructor() {
        /**
         * 赤色を表現する値
         */
        this.red    = 0;
        /**
         * 緑色を表現する値
         */
        this.green  = 0;
        /**
         * 青色を表現する値
         */
        this.blue   = 0;
        /**
         * 透明度を表現する値
         */
        this.alpha  = 0;
    }
}
 
export { Color };