• Home
  • Textbooks
  • Computer Graphics with Open GL
  • Color Models and Color Applications

Computer Graphics with Open GL

Donald Hearn. M. Pauline. Baker, Warren R.Carithers

Chapter 17

Color Models and Color Applications - all with Video Answers

Educators


Chapter Questions

19:31

Problem 1

Design an algorithm that allows objects to be
positioned on the screen using a locator device.
An object menu of geometric shapes is to be presented to a user who is to select an object and
a placement position. The program should allow
any number of objects to be positioned until a
“terminate” signal is given.

Brian Ketelobeter
Brian Ketelobeter
Numerade Educator
02:56

Problem 1

Derive the expressions for converting RGB color
parameters to HSV values.

Willis James
Willis James
Numerade Educator
01:11

Problem 2

Extend the algorithm of the previous exercise so
that selected objects can be scaled and rotated
before positioning. The transformation choices
and transformation parameters are to be presented to the user as menu options.

Farnood Ensan
Farnood Ensan
Numerade Educator
02:56

Problem 2

Derive the expressions for converting HSV color
values to RGB values.

Willis James
Willis James
Numerade Educator
00:36

Problem 3

Set up a procedure forinteractively sketching pictures using a stroke device.

ag
Alan Ghazarians
Numerade Educator
22:52

Problem 3

Design an interactive procedure that allows
selection of HSV color parameters from a displayed menu; then, the HSV values are to be
converted to RGB values for storage in a frame
buffer.

Brian Ketelobeter
Brian Ketelobeter
Numerade Educator
01:18

Problem 4

4 Discuss the methods that could be employed in
a pattern-recognition procedure to match input
characters against a stored library of shapes

Lottie Adams
Lottie Adams
Numerade Educator
01:01

Problem 4

Write a program to select colors using a set of
three sliders to select values for the HSV color
parameters.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
05:58

Problem 5

Modify the program in the preceding exercise to
display the numeric values for the RGB components of a selected color.

Darren Wilson
Darren Wilson
Numerade Educator
21:23

Problem 5

Write a routine that displays a linear scale and a
slider on the screen and allows numeric values to
be selected by positioning the slide along the scale
line. The selected numeric value is to be echoed
in a box displayed near the linear scale.

Brian Ketelobeter
Brian Ketelobeter
Numerade Educator
02:30

Problem 6

Write a program that makes use of the slider
developed in the previous exercise to allow the
user to scale an object displayed in a display
window between some minimum and maximum
value.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
05:54

Problem 6

Modify the program in the preceding exercise to
display the RGB color components and the combined color in small display windows.

Jasmine Haskell
Jasmine Haskell
Numerade Educator
03:17

Problem 7

Write a routine that displays a circular scale and a
pointer or a slider that can be moved around the
circle to select angles (in degrees). The angular
value selected is to be echoed in a box displayed
near the circular scale.

Shelby Mohamed
Shelby Mohamed
Numerade Educator
02:56

Problem 7

Derive expressions for converting RGB color values to HLS color parameters.

Willis James
Willis James
Numerade Educator
02:51

Problem 8

Write a program that makes use of the circular
slider developed in the previous exercise to allow
the user to rotate an object around its center.

Aaron Goree
Aaron Goree
Numerade Educator
02:56

Problem 8

Derive expressions for converting HLS color values to RGB values.

Willis James
Willis James
Numerade Educator
02:53

Problem 9

Write a drawing program that allows users to create a picture as a set of straight-line segments
drawn between specified endpoints. The coordinates of the individual line segments are to be
selected with a locator device.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
05:54

Problem 9

Design an interactive procedure that allows
selection of HLS color parameters from a displayed menu; then, the HLS values are to be
converted to RGB values for storage in a frame
buffer.

Jasmine Haskell
Jasmine Haskell
Numerade Educator
00:30

Problem 10

Write a drawing package that allows pictures
to be created with straight-line segments drawn
between specified endpoints. Set up a gravity
field around each line in a picture, as an aid in
connecting new lines to existing lines.

Jay Patel
Jay Patel
Numerade Educator
01:22

Problem 10

Write a program that will produce a set of colors that are linearly interpolated between any two
specified positions in RGB space.

Adriano Chikande
Adriano Chikande
Numerade Educator
01:35

Problem 11

Modify the drawing package in the previous exercise so that lines can be constrained horizontally
or vertically.

Christine Anacker
Christine Anacker
Numerade Educator
01:41

Problem 11

Write an interactive routine for selecting color
values from within a specified subspace of RGB
space.

Adriano Chikande
Adriano Chikande
Numerade Educator
01:26

Problem 12

Write a program that will produce a set of colors that are linearly interpolated between any two
specified positions in HSV space.

Nick Johnson
Nick Johnson
Numerade Educator
01:40

Problem 13

Write an interactive routine for selecting color
values from within a specified subspace of HSV
space.

Carson Merrill
Carson Merrill
Numerade Educator
01:56

Problem 14

Write a program that will produce a set of colors that are linearly interpolated between any two
specified positions in HLS space.

Nick Johnson
Nick Johnson
Numerade Educator
01:40

Problem 15

Write an interactive routine for selecting color
values from within a specified subspace of HLS
space.

Carson Merrill
Carson Merrill
Numerade Educator
04:13

Problem 16

Write a program to display two adjacent RGB
color rectangles. Fill one rectangle with a set
of randomly selected RGB color points, and fill the other rectangle with a set of color points
that are selected from a small RGB subspace.
Experiment with different random selections and
different subspaces to compare the two color
patterns.

Morgan Cheatham
Morgan Cheatham
Numerade Educator
00:48

Problem 17

Display the two color rectangles in the preceding exercise using color selections from either the
HSV or the HLS color space.

AG
Ankit Gupta
Numerade Educator
02:21

Problem 18

Write a program that will produce a randomly
selected color from within a color gamut specified by three positions in RGB space.

Harriet O'Brien
Harriet O'Brien
Numerade Educator
02:21

Problem 19

Write a program that will produce a randomly
selected color from within a color gamut specified by three positions in HSV space.

Harriet O'Brien
Harriet O'Brien
Numerade Educator
02:21

Problem 20

Write a program that will produce a randomly
selected color from within a color gamut specified by three positions in HLS space.

Harriet O'Brien
Harriet O'Brien
Numerade Educator