Hi all!
I am working on a gouraud-shading algorithm for Java2D. I found a tip on this forum that the Paint and PaintContext - classes could be extended in order to make a new GradientPaintContext accepting 3 points instead of the standard 2. My problem is that I have not dug this deep into Java yet, and I am having trouble understanding the GradientPaintContext source file (as for when pixels are acctually beeing set, what certain operators does and so on). Does anyone know a good site explaining some of the not-so-common operators as i.e. the shift operator, or declarations like:
int g1 = (rgb1 >> 8) & 0xff;
or could someone here explain these to me?