 width = size
 maxRadius = size / 2
 
+$canvas     = $ '#picker canvas'
+$svg        = $ '#picker svg'
+
+ctx = $canvas[0].getContext '2d'
+contrasting = null
+
+H = 0
+S = 100
+L = 50
+scale = null
+sortedIntersections = []
+bounds = []
+shape = null
+
+
+
 
 
 toCart = (angle, radius) ->

  ctx.closePath()
  ctx.fill()

H = 0
S = 100
L = 50
scale = null
sortedIntersections = []
bounds = []
shape = null
pointer = null

makeBackground = ->

  background = d3.select("#picker svg").append("g")

  ret.sort()
  return ret

redrawSquare = (x, y, dim) ->
  vx = (x - 200) / scale
  vy = (y - 200) / scale
