I'll ask it quite simple:
There is a triangle movie clip with vertices A (0, 0); B
(256, 0); C (0, 256)
Each vertex has some color (e.g., A - red, B - green, C -
I need to shade the entire area of this triangle by
interpolating between these 3 colors.
Something like a gradient, but it has 3 vertices, not 2 like
a linear one.
I tried two ways:
1) create a 256x256 BitmapData, attach it to my clip and
shade the triangle in bitmap,
manually (just like people were programming 3d graphics
this works, but is very slow (of course).
2) create a 2x2 or 3x3 or some other lilttle square bitmap,
shade it then scale it to 256x256
with smoothing option (attachBitmap's argument) enabled. this
works quite fast and looks almost
right but not quite right.