Basic HTML version of Foils prepared 13 July 98

Foil 19 RGB Color Format

From Java Academy II:Intermediate Java NPAC/ECS Java Academy -- February to April 98. by Tom Scavo

The java.awt.Color class
In Java, a Color object is represented in RGB format (R = Red, G = Green, B = Blue)
Each color component (R, G, or B) is an integer between 0 and 255, inclusive
For example: Color red = new Color( 255, 0, 0 ); Color black = new Color( 0, 0, 0 ); Color white = new Color( 255, 255, 255 );



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sat Nov 28 1998