CSC108H1 Lecture : september 12 notes
yifanyang and 39659 others unlocked
21
CSC108H1 Full Course Notes
Verified Note
21 documents
Document Summary
Import media [imports media file] filename = media. choose_file(: pic = media. load_picture(filename, media. show(pic) pixels ex. Red: (255, 0, 0: green: (0, 255, 0, white: (255, 255, 255) Ex. program to change picture; daytime to sunset. Step 1: design go through every pixel and reduce green + blue. For each pixel in the picture get the blue reduce that number by 30% set new blue value [have to set the number] get the green reduce the number by 30% set the new green.