Functional Problem Solving (CSC 151 2015S) : EBoards

CSC151.01 2015S, Class 22: Images as Functions from Position to Colors


Overview

Preliminaries

Admin

Upcoming Work

Extra Credit Opportunities

Academic

Peer Support (Morning Section)

Other Good Things

Questions

Will you add my cool event above?

Done.

Lab/Debrief

How do I generalize my blend?

            Start           Mid             End
    Column  0             width/2           width
    BlaBlu  0                               255
    ??      128                             255
    ??      64                              196

How can I check my pixel values for a blend?

    > (define blend (horiz-black-blue-blend 100 100))
    > (map (lambda (col) (irgb->rgb-list (image-get-pixel blend col 50)))
           (iota 100))

Many of you computed a multiplier using (/ 256 width) (/ 255 width). Is there a problem with that approach? (Hint: What if width is 2?)