A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://docs.oracle.com/en/java/javase/19/docs/api/java.desktop/java/awt/GradientPaint.html below:

GradientPaint (Java SE 19 & JDK 19)

All Implemented Interfaces:
Paint, Transparency
public class GradientPaint extends Object implements Paint

The

GradientPaint

class provides a way to fill a

Shape

with a linear color gradient pattern. If

Point

P1 with

Color

C1 and

Point

P2 with

Color

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.

See Also:

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4