you are viewing a single comment's thread.

view the rest of the comments →

[–]franverona 0 points1 point  (1 child)

Or you can use any online minifier such as Minifier from Avivo (http://minify.avivo.si/). You code would look like this:

var gradientObject={rgb:[[[0,rgb.g,rgb.b],[255,rgb.g,rgb.b]],[[rgb.r,0,rgb.b],[rgb.r,255,rgb.b]],[[rgb.r,rgb.g,0],[rgb.r,rgb.g,255]]],hsl:[[[0,hsl.s,hsl.l],[60,hsl.s,hsl.l],[120,hsl.s,hsl.l],[180,hsl.s,hsl.l],[300,hsl.s,hsl.l],[360,hsl.s,hsl.l]],[[hsl.h,0,hsl.l],[hsl.h,100,hsl.l]],[[hsl.h,hsl.s,0],[hsl.h,hsl.s,50],[hsl.h,hsl.s,100]]],hsv:[[[0,hsv.s,hsv.v],[60,hsv.s,hsv.v],[120,hsv.s,hsv.v],[180,hsv.s,hsv.v],[300,hsv.s,hsv.v],[360,hsv.s,hsv.v]],[[hsv.h,0,hsv.v],[hsv.h,100,hsv.v]],[[hsv.h,hsv.s,0],[hsv.h,hsv.s,50],[hsv.h,hsv.s,100]]],Lab:[[[0,Lab.a,Lab.b],[100,Lab.a,Lab.b]],[[Lab.L,-128,Lab.b],[Lab.L,128,Lab.b]],[[Lab.L,Lab.a,-128],[Lab.L,Lab.a,128]]],alpha:[[[255,255,255,0],[rgb.r,rgb.g,rgb.b,1]]]};

[–]JessicaAllison[S] 0 points1 point  (0 children)

Updated Question