コード例 #1
0
            public hsl(ushort[] values, decimal[] fraction)
            {
                Values   = new ColorfulGeneric.HSL <ushort>();
                Fraction = new ColorfulGeneric.HSL <decimal>();

                Values.H = values[0];
                Values.S = values[1];
                Values.L = values[2];

                Fraction.H = fraction[0];
                Fraction.S = fraction[1];
                Fraction.L = fraction[2];
            }
コード例 #2
0
            public hsl(object jsonData)
            {
                var _hslData = (hslData)jsonData;

                Values   = new ColorfulGeneric.HSL <ushort>();
                Values.H = _hslData.h;
                Values.S = _hslData.s;
                Values.L = _hslData.l;

                Fraction   = new ColorfulGeneric.HSL <decimal>();
                Fraction.H = _hslData.fraction.h;
                Fraction.S = _hslData.fraction.s;
                Fraction.L = _hslData.fraction.l;
            }