I would like to draw objects on the screen that are defined by simple mathematical functions like "greylevel = sin(x)" or "greylevel = max(0, 256 - x^2 - y^2)." If one knows the screen resolution, one can put in a couple for loops and specify the greylevel pixel by pixel. That is how I did it in "Classic MacOS." However, given the vector nature of Quartz, it seems like there should be a more elegant way to do this. I haven't been able to find anything useful in the documentation though. Does anybody know a good way to do this?