I would like to draw a small square, which is 4×4 pixels. I would like to be able to adjust its color at runtime (not like a color well or anything, the user doesn’t need to be able to). I had been doing this with an NSImage, but this uses up a lot of resources and I can’t adjust, and making a different little color swatch in Photoshop to change it to for any new color is a huge pain, so it is no longer suitable. How can this be done on Mac OS X ?
I would like to draw a small square, which is 4×4 pixels. I would
Share
The simplest way to draw a 4×4 square at coordinate 0,0 (bottom left) on Mac OS X:
The simplest way to set the colour used for that sort of drawing:
😉