GradientPaint
class provides a way to fill a {@link Shape} with a linear color gradient pattern.If {@link Point} P1 with {@link Color} C1 and Point
P2 withColor
C2 are specified in user space, the Color
on the P1, P2 connecting line is proportionally changed from C1 to C2. Any point P not on the extended P1, P2 connecting line has the color of the point P' that is the perpendicular projection of P on the extended P1, P2 connecting line. Points on the extended line outside of the P1, P2 segment can be colored in one of two ways. Color
C1 while points on the P2 side have the constant Color
C2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|