Borklog: One entry


3 September 2003

Mac OS X has some nifty stuff hidden down in the Quartz (brand) drawing layer. I'm working on the next version of the BorkStitch app for the Spousal OverUnit, and one of her books had a nice shading effect for their diagrams. So tried changing the flat mode into something a little more interesting. It was about 2 hours of work, going through some new and barely documented calls. Pretty much you write a 1:4 function, with domain 0.0 to 1.0,and range 0.0 to 1.0 for each of red, green, blue, and alpha (or CYMKA if you want) The system does the interpolaton and asks the function to map it to a color. This is just an axial fill, but it's got radial fills too.
admin@badgertronics.com