• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Displaying Colors

Remember when you were in elementary school, and the teacher showed you how to make green by combining yellow and blue paint? Forget all that—those techniques applied to pigments on paper, in which colors are made by subtracting colors from the white light falling on the paper. Most of the graphics you make in Java need to look good on a computer screen—an additive process based on the primary colors red, green, and blue. Common combinations are

  • Red and green, which results in yellow when the colors are bright and in brown when the colors are less intense

  • Green and blue, resulting in cyan

  • Red and blue, resulting in magenta


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint