GradientPainter is a class that accepts parameters
defining a gradient, and can also paint the gradient
into a Shape (actually, into the Shape's bounding
box), and can also fill the gradient into an Image or
just an array of pixel values.
GradientPainter is a class that accepts parameters
defining a gradient, and can also paint the gradient
into a Shape (actually, into the Shape's bounding
box).
Split a segment into two segments at its midpoint, the segments
will be contiguous, so the overall gradient would not be
affected by replacing the original segment with this pair.