CS 1301 Lecture Notes - Lecture 3: Big O Notation, Selection Sort, Quicksort

49 views14 pages
17 Apr 2017
Course
Professor

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.

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents