RU beehive logo ITEC dept promo banner
ITEC 109
2014spring
ibarland

homeinfolabsexamshws
D2LMediaSamples/breeze (snow day)tutor/PIs

lab28
looping over entire pictures

Last time, we saw how we can have a function which uses a for-loop, along with range, to modify a 30x100 swatch of a picture. Today, we'll follow up on that in a natural way:


1Recall that I'm using “enpurple” to mean turning a pixel's red and blue all the way on:

px = getPixel( somePictureObject, someXCoord, someYCoord )
setRed(px, 255)
setBlue(px, 255)
     

homeinfolabsexamshws
D2LMediaSamples/breeze (snow day)tutor/PIs


©2014, Ian Barland, Radford University
Last modified 2014.Apr.29 (Tue)
Please mail any suggestions
(incl. typos, broken links)
to ibarlandradford.edu
Powered by PLT Scheme