Page 18 - DCAP504_Computer Graphics
P. 18

Avinash Bhagat, Lovely Professional University        Unit 2: Colors in Computer Graphics




                                 Unit 2: Colors in Computer Graphics




               CONTENTS
               Objectives
               Introduction
               2.1. Color Models
                  2.1.1 RGB Color Model
                  2.1.2 CMYK Color Model

               2.2. Setting the Color Attributes of Pixels
               2.3. Mandelbrot Set
               2.4. Julia Set
               2.5. Summary
               2.6. Keywords

               2.7. Self Assessment
               2.8. Review Questions
               2.9. Further Readings

               Objectives


               After studying this unit, you will be able to:
               •    Explain red green blue (RGB) color model
               •    Define setting the color attributes of pixels

               •    Explain Mandelbrot set
               •    Define Julia set
               Introduction
               Color plays  an important role in images. The  light enters our eyes in the form of a  spectrum with
               variation in the wavelengths. Human beings have three kinds of cones in their eyes that respond to
               different colors  with different wavelengths. The basic colors red,  green and blue  represents  long,
               medium and short wavelengths respectively.



                Did you know?   The human vision is three-dimensional known as principle of trichromacy. According
                             to this, the spectrum of light is encoded into three values that  correspond  to the
                             amount of light absorbed by each type of cone.
               This unit gives an overview of the RGB color model, CMYK color model, setting the color attributes of
               pixels, Mandelbrot set and Julia set.

               2.1   Color Models
               Color is a complex, interdisciplinary phenomenon spanning from psychology to physics. As the name
               suggests, color model is a model of colors. It can be defined as an organized system, which is used for
               the creation of a wide variety of colors starting from a small collection of primary colors.




                                        LOVELY PROFESSIONAL UNIVERSITY                           11
   13   14   15   16   17   18   19   20   21   22   23