Visibility Polygons

Instructions:
  1. Select points from the canvas below to draw a polyon. Double click to pick the last vertex and close the poygon.
  2. Right click to pick a point inside the polygon. All the points visible from it will be colored by a random color.