Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
255 lines (254 sloc) 6.37 KB
{
"valuefrompositionequation":
"atan2($x - $controlcenterx, $y - $controlcentery) * 2.0 / (3.0 * pi) + 0.5",
"drawinstructions" : {
"elementtype" : "arrayofelements",
"arrayofelements" : [
{
"comment" : "Drawn transparent, left in so easy to turn on & off",
"fillcolor" : {
"alpha" : 0,
"gray" : 0.15,
"colorcolorprofilename" : "kCGColorSpaceGenericGray"
},
"elementtype" : "fillrectangle",
"rect" : {
"origin" : {
"x" : 0,
"y" : 0
},
"size" : {
"width" : "$width",
"height" : "$height"
}
}
},
{
"shadow" : {
"offset" : {
"width" : 0,
"height" : 0
},
"fillcolor" : {
"red" : 0.5,
"alpha" : 1,
"colorcolorprofilename" : "kCGColorSpaceSRGB",
"blue" : 0.5,
"green" : 0.5
},
"blur" : 6
},
"linewidth" : 28,
"elementtype" : "strokepath",
"arrayofpathelements" : [
{
"elementtype" : "patharc",
"startangle" : 3.926990816987241,
"centerpoint" : {
"x" : 70,
"y" : 70
},
"clockwise" : true,
"endangle" : -0.7853981633974483,
"radius" : 54
}
],
"strokecolor" : {
"alpha" : 1,
"gray" : 0.12,
"colorcolorprofilename" : "kCGColorSpaceGenericGray"
},
"linecap" : "kCGLineCapRound",
"startpoint" : {
"x" : 31.81623381592643,
"y" : 31.81623381592644
}
},
{
"linecap" : "kCGLineCapRound",
"elementtype" : "strokepath",
"strokecolor" : {
"red" : 0.8,
"alpha" : 1,
"colorcolorprofilename" : "kCGColorSpaceSRGB",
"blue" : 0.8,
"green" : 0.8
},
"linewidth" : 20,
"arrayofpathelements" : [
{
"elementtype" : "patharc",
"startangle" : 3.926990816987241,
"centerpoint" : {
"x" : 70,
"y" : 70
},
"clockwise" : true,
"endangle" : -0.7853981633974483,
"radius" : 54
}
],
"startpoint" : {
"x" : 31.81623381592643,
"y" : 31.81623381592644
}
},
{
"shadow" : {
"offset" : {
"width" : 0,
"height" : 0
},
"fillcolor" : {
"alpha" : 1,
"gray" : 0,
"colorcolorprofilename" : "kCGColorSpaceGenericGray"
},
"blur" : 3
},
"linewidth" : 1,
"elementtype" : "strokepath",
"arrayofpathelements" : [
{
"elementtype" : "patharc",
"startangle" : 3.926990816987241,
"centerpoint" : {
"x" : 70,
"y" : 70
},
"clockwise" : true,
"endangle" : -0.7853981633974483,
"radius" : 54
}
],
"strokecolor" : {
"red" : 0.2,
"alpha" : 1,
"colorcolorprofilename" : "kCGColorSpaceSRGB",
"blue" : 0.2,
"green" : 0.2
},
"linecap" : "kCGLineCapRound",
"startpoint" : {
"x" : 31.81623381592643,
"y" : 31.81623381592644
}
},
{
"shadow" : {
"offset" : {
"width" : 0,
"height" : 0
},
"fillcolor" : {
"alpha" : 2,
"gray" : 0.2,
"colorcolorprofilename" : "kCGColorSpaceGenericGray"
},
"blur" : 4
},
"linewidth" : 14,
"elementtype" : "strokepath",
"arrayofpathelements" : [
{
"elementtype" : "patharc",
"startangle" : 3.926990816987242,
"centerpoint" : {
"x" : 70,
"y" : 70
},
"clockwise" : true,
"endangle" : "3.926990816987241 - 4.71238898038469 * $controlvalue",
"radius" : 54
}
],
"strokecolor" : {
"alpha" : 1,
"gray" : 0.12,
"colorcolorprofilename" : "kCGColorSpaceGenericGray"
},
"linecap" : "kCGLineCapRound",
"startpoint" : {
"x" : 31.81623381592643,
"y" : 31.81623381592644
}
},
{
"stringtext" : "0.500",
"textalignment" : "kCTTextAlignmentCenter",
"point" : {
"x" : 0,
"y" : 60
},
"fontsize" : 18,
"elementtype" : "drawbasicstring",
"userinterfacefont" : "kCTFontUIFontUserFixedPitch",
"fillcolor" : {
"red" : 0.8,
"alpha" : 1,
"colorcolorprofilename" : "kCGColorSpaceSRGB",
"blue" : 0.8,
"green" : 0.8
},
"arrayofpathelements" : [
{
"elementtype" : "pathrectangle",
"rect" : {
"origin" : {
"x" : 0,
"y" : 64
},
"size" : {
"width" : 140,
"height" : 26
}
}
}
],
"textsubstitution" : "controltext"
},
{
"stringtext" : "label",
"textalignment" : "kCTTextAlignmentCenter",
"point" : {
"x" : 0,
"y" : 60
},
"fontsize" : 12,
"elementtype" : "drawbasicstring",
"userinterfacefont" : "kCTFontUIFontSystem",
"fillcolor" : {
"red" : 0.8,
"alpha" : 1,
"colorcolorprofilename" : "kCGColorSpaceSRGB",
"blue" : 0.8,
"green" : 0.8
},
"arrayofpathelements" : [
{
"elementtype" : "pathrectangle",
"rect" : {
"origin" : {
"x" : 0,
"y" : 42
},
"size" : {
"width" : 140,
"height" : 26
}
}
}
],
"textsubstitution" : "controllabel"
}
]
},
"variabledefinitions" : [
{
"maxvalue" : 1,
"variablekey" : "controlvalue",
"defaultvalue" : 0,
"minvalue" : 0
}
]
}