Extra Vectors Stuff
I had planned this as a useful exercise. However, it looks like the
list based version doesn't have quite the behavior I expected.
Exercise 6: Comparing Implementations of Palette
As you may recall, one of the reasons we started to explore the
vector-based implementation of palettes is that we expected the
vector-based implementation to be significantly faster in reading
pixel maps from files. (There shouldn't be much difference in saving
pixel maps to files, but we should check that, too.)
At the end of this lab you'll see some code to help you explore this
question. You should have most of this code in the library, but it
is included there in case you haven't written or you've neglected to
save any of these key procedures.
Here are a few list-based palettes of colors, randomly selected from
the kitten image.
Notes on Exercise 6
Here are some procedures that you may find useful as you do
exercise 6.
; +------------------------+----------------------------------------------------
; | Basic Input and Output |
; +------------------------+
; +---------------+-------------------------------------------------------------
; | RGB Utilities |
; +---------------+
; +-------------------+---------------------------------------------------------
; | Palette Utilities |
; +-------------------+
; +-------------------------+---------------------------------------------------
; | Miscellaneous Utilities |
; +-------------------------+