CS 1301 Lecture Notes - Lecture 3: Big O Notation, Selection Sort, Quicksort
Document Summary
We show it, duh. show(picname) shows us the picture we took or downloaded! Two functions that could come in handy to find the height and width: w=getwidth(picname) stores the width of the picture to w h=getheight(picname) stores the height of the picture to h. Notice how it printed some random useless info nothing about rgb y"all! tonsopixels=getpixels(picname) stores (cid:498)info(cid:499) about all the pixels once again, this does not hold the magical info you need! Now we (cid:498)accessed(cid:499) the (cid:498)info(cid:499) at a certain pixel and each item in listopixels holds that info! If you passed kindergarten, you know rgb stands for red, green, and blue. Look at the next page to show the example! Yayay ta da look we know the rgb values after all. Meanwhile, here is a picture of a puppy: Sorry, i don"t have my gel pens, so i have to distract y"all somehow.