Any reason you need to create these programatically? Can't you just create them by hand - storing coords, size and colour of each dot? Shouldn't take too long to knock up an editor to achieve this.
P.S. I'm a bit worried that I have trouble making out this one:

Is it a 2? :/
P.S. I'm a bit worried that I have trouble making out this one:
Is it a 2? :/