 
 func voronoi() {
     
+    let w = 255
+    let h = 255
     let n = 25
     
-    var b = BitmapCanvas(256, 256)
+    var b = BitmapCanvas(w, h)
     
     var pointsColors : [(NSPoint, NSColor)] = []
     

    }
    
    for (p,_) in pointsColors {
        let rect = R(p.x-2, p.y-2, 4, 4)
        b.ellipse(rect, stroke:"black", fill:"black")
    }
    

    b.save("/tmp/polygon.png", open:true)
}

switzerland()

//bitmap()
//points()
//lines()
//rects()
//ellipse()
//text()
//image()
//bezier()
//cgContext()
//colors()
voronoi()
//polygon()

//let b = BitmapCanvas(6000,6000, "SkyBlue")
//b.fill(P(270,243), color: NSColor.blueColor())
//b.save("/tmp/out.png", open: true)

//X11Colors.dump("/opt/X11/share/X11/rgb.txt", outPath:"/tmp/X11.clr")
