1 / 7

Announcements & Review

Lab 7 Due Thursday 2 D arrays - embedding graphs in an array. Computer Science Artifacts Abstraction Representations Algorithms sort, search, etc. Announcements & Review. Color. Biology - what you see Subtractive primary colors

boone
Download Presentation

Announcements & Review

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lab 7 Due Thursday 2 D arrays - embedding graphs in an array Computer Science Artifacts Abstraction Representations Algorithms sort, search, etc. Announcements & Review Lecture 24: Color

  2. Color • Biology - what you see • Subtractive primary colors • making colors from others on paper or mixing paint • Additive primary colors • making colors from others on your computer or TV Lecture 24: Color

  3. Subtractive Color Mixing In printing and painting • RYB - Red Yellow Blue • The RYB model combines Red Yellow Blue to create other colors. • Mixing paints is an absorptive or subtraction process • CMYB - Cyan Magenta Yellow Black Lecture 24: Color

  4. Additive Color Mixing • Screens - TV, computer, cell phone • RGB - Red Green Blue • The RGB additive light model combines Red Green Blue to create other colors. • RGB are the three primary colors in additive light models. • The specific shades are unspecified (and devices implement them differently). • http://mc2.cchem.berkeley.edu/Java/RGB/example1.html Lecture 24: Color

  5. Colors in Java Color constructor: Color(int r, int g, int b) • Each of these integers are between 0 and 255 Color myColor = new Color(100, 140, 180); int red = myColor.getRed(); int RGBvalue = myColor.getRGB(); http://java.sun.com/j2se/1.3/docs/api/java/awt/Color.html Lecture 24: Color

  6. Java Examples in BlueJ • Images as 2D arrays • Playing with colors Lecture 24: Color

  7. More Questions? Lecture 24: Color

More Related