Class Notes (835,065)
Canada (508,908)
CSC108H1 (113)
Lecture

september 12 notes

1 Page
80 Views
Unlock Document

Department
Computer Science
Course
CSC108H1
Professor
Michelle Craig
Semester
Fall

Description
 Install wing python program  Ex. Program, import picture & display it 1. Import media [imports media file] 2. 3. filename = media.choose_file() 4. pic = media.load_picture(filename) 5. media.show(pic)  pixels ex. 1024 x 768 o pixel (0,0) = upper left; pixel (1023,0) = upper right; pixel (0, 767) is lower left; pixel (1023,767) is lower right  python numbering starts at [0] instead of [1]  colors: combination of red green, blue o each range 0 – 255 o Red: (255, 0, 0) o Green: (0, 255, 0) o Blue: (0, 0, 255) o White: (255, 255, 255) o Black: (0, 0, 0)  Ex. program to change picture; daytime to sunset o Step 1: design – go through every pixel and reduce green + blue o For each pixel in the picture  get the blue  reduce that number by 30%
More Less

Related notes for CSC108H1

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit