Sorry, not trying to be difficult. But what then? Most of the Photoshop layer effects are exactly what they say they are (add, subtract, multiply...)thevinn wrote:This is more than a simple anti-aliasing.AdmiralQuality wrote:Also, isn't antialiasing like this built into just about every OS already? Particularly for font rendering?
Emboss is just a kernel like this:
0 0 0
0 1 0
-1 0 0
(Obviously that gets a bit different if you want to support other angles and depths, but that's the basic idea.)
See Poly-Ana for controls with glowing edges (the light buttons) overlapping other controls (the knobs that are near them, particularly in the performance section to the left of the keyboard). Also right click on a control and bring up the MIDI-learn, notice how it overlaps other controls yet is semi-transparent AND had a drop shadow? All done with PNGs with transparency.Calculating the effects at run time lets you do more than can be done with pre-rendered bitmaps. You could overlay a control with glowing edges on top of another element that changes its appearance. Or you can change colours dynamically based on context. There are many possibilities.Frankly I'd rather have a large "filmstrip" in my GUI than waste a nanosecond of CPU time on unnecessary image processing. Anything that can be "canned" beforehand, I'd can. And you can achieve dropshadow and even lighting effects by designing your images and alpha channel right.
But also, this will become part of a system that uses just in time compilation that shows you a preview of your code as you are writing it (disclaimer: I'm not writing that part).
Rotating color space is easy enough, but I'd do it to the filmstrip once rather than on demand at every idle redraw.
But sure, there are lots of times we'd like to arbitrarily draw content. Analyzer displays in particular.

