예제 #1
0
        public override void FromJson(string data)
        {
            HSLData d = JsonConvert.DeserializeObject <HSLData>(data);

            SetBaseNodeDate(d);
            hue        = d.hue;
            saturation = d.saturation;
            lightness  = d.lightness;
        }
예제 #2
0
        public override string GetJson()
        {
            HSLData d = new HSLData();

            FillBaseNodeData(d);
            d.hue        = hue;
            d.saturation = saturation;
            d.lightness  = lightness;

            return(JsonConvert.SerializeObject(d));
        }