; Define an 11x1 image (define image (image.new 11 1)) (image.show image) ; Define the endpoint colors for convenience (define start-color (rgb.new 0 0 255)) (define end-color (rgb.new 255 0 0)) ; Set pixel (0,0) to blue (image.set-pixel! image 0 0 start-color) ; Set pixel (10,0) to ending color (image.set-pixel! image 10 0 end-color) ; Set the middle pixels (image.set-pixel image 5 0 (rgb.new 128 0 128))