Hey everyone, I'm Wrenn. I am from Honolulu, Hawaii on the island of Oahu. I love the being in the water and I am often found at Sandy's or surfing. At USF I am majoring in graphic design. You can email me at wre2nboy@hotmail.com. Check Out My S.F. Cloud Status Page: http://twittergabeandwrenn.appspot.com/ Check Out My GPA Calculator: gpakalculator111.appspot.com Check Out My Squid Website: http://www.cs.usfca.edu/~wswatanabe/squidwebsite/squidsquid.html Facebook me at: http://www.facebook.com/profile.php?id=531126607&v=photos&viewas=531126607&so=0#/profile.php?id=531126607&ref=profile Go To My HTML Page http://cs.usfca.edu/~wswatanabe/testhomepage.html Check Out My GPA Calculator: http://gpacalculator808.appspot.com Pyton Interest Rates RED BORDER: filename=pickAFile() pic = makePicture (filename) show(pic) w = getWidth(pic) col=1 while col<w: pixel = getPixel(pic,col,1) setColor(pixel,red) pixel = getPixel(pic,col,2) setColor(pixel,red) pixel = getPixel(pic,col,3) setColor(pixel,red) col=col+1 repaint(pic) This program creates a three row line on top of the picture. BLUE THIRDS: filename=pickAFile() pic = makePicture (filename) show(pic) w = getWidth(pic) h= getHeight(pic) col=1 while col<w: row=1 while row<h: pixel = getPixel(pic,col,row) setColor(pixel,blue) row=row+1 col=col+3 repaint(pic) This program creates blue lines up and down the picture every three pixels. GREEN FOURTHS: filename=pickAFile() pic = makePicture (filename) show(pic) w = getWidth(pic) h= getHeight(pic) row=1 while row<h: col=1 while col<w: pixel = getPixel(pic,col,row) setColor(pixel,green) col=col+1 row=row+4 repaint(pic) This program creates green columns across the width of the picture every four rows. BLACK & WHITE PROGRAM filename=pickAFile() pic = makePicture(filename) show(pic) w = getWidth(pic) h = getHeight(pic) col = 1 while col<w: row = 1 while row<h: pixel = getPixel (pic,col,row) r = getRed(pixel) b = getBlue(pixel) g = getGreen(pixel) intensity = (r + g + b) / 3 setRed (pixel, intensity) setBlue (pixel, intensity) setGreen (pixel, intensity) row = row + 1 col = col + 1 repaint(pic) This program turns colored pixels into black and white. It takes the intensity, which is the average of the color values, and makes them into shapes of black and white. Making the entire image black and white. SCOREBOARD PROGRAM
filename=pickAFile() pic = makePicture (filename) show(pic) w = getWidth(pic) h= getHeight(pic) col=126 while col<246: row=120 while row<189: pixel = getPixel(pic,col,row) setColor(pixel,black) row=row+1 col=col+1 addText(pic,150,150,"MARRY ME!",yellow) repaint(pic) This program paints over the screen of the score board with black. To do this you need to put the x and y values of the corner of the score board screen, and fill the screen in with black. Then I addText to put a message on the black screen. MIRROR PROGRAM filename=pickAFile() pic = makePicture (filename) show(pic) w = getWidth(pic) h= getHeight(pic) col=1 mirrorcol=w while col < w/2: row=1 while row < h: pixel=getPixel (pic,col,row) color=getColor(pixel) rightPixel=getPixel (pic,mirrorcol,row) setColor(rightPixel,color) row=row+1 col=col+1 mirrorcol=mirrorcol-1 repaint(pic) This program mirrors the image from the center column. BORDER PROGRAM filename=pickAFile() pic = makePicture (filename) filename=pickAFile() pic2= makePicture (filename) col=1 frameCol=100 while col<getWidth(pic) and frameCol < 300: row=1 frameRow=100 while row <getHeight(pic) and frameRow < 300: pixel=getPixel(pic,col,row) c=getColor(pixel) targetPixel=getPixel (pic2,frameCol,frameRow) setColor(targetPixel,c) row=row+1 frameRow+frameRow+1 col=col+1 frameCol=frameCol+1 repaint (pic) This program takes a image and puts it inside another image to create an image with a border. ARTISTIC GRAY SCALE PROGRAM filename=pickAFile() pic=makePicture (filename) show(pic) w = getWidth(pic) h = getHeight(pic) col=1 while col<w: row=1 while row<h: pixel = getPixel(pic,col,row) r = getRed(pixel) g = getGreen(pixel) b = getBlue(pixel) row=row+2 intensity = (r + g + b)/3 setGreen(pixel, intensity) setBlue(pixel, intensity) setRed(pixel, intensity) col=col+1 repaint(pic) INTEREST AFTER YEARS principal = input ('enter principal') year = input ('enter years in bank') i=0 while i<year: if principal < 10000: rate = .1 if principal >= 10000: rate = .2 if principal > 50000: rate = .25 if i >= 3: rate = .3 interest=principal*rate principal=principal+interest i=i+1 print principal 1ST HOME PAGE <head> <html> <title>Wrenn's Home Page</title> <html> <head> <title>main css model</title> <link href="squid styling.css" media="screen" rel="Stylesheet" type="text/css" /> </head> <h1> **WRENN'S HOME PAGE** </h1><p style <a href="http://cs.usfca.edu/~wswatanabe">My Files</a> <br/> <a href="http://sites.google.com/site/wrennscsportfolio/">My Computer Science Portfolio</a> <br/> <a href="http://sites.google.com/site/wrennscsportfolio/cloud-computing-rese">My Cloud Computing Page</a> <br/> <a href="http://sites.google.com/site/allaboutarttheftsite/">Stolen Art Page</a> <br/> <a href="http://cs.usfca.edu/~wswatanabe/amazingpictures.html">Amazing Pictures</a> <br/> <a href="http://www.cs.usfca.edu/~wswatanabe/mytabs.htm">Drop Down Tabs Page</a> <br/> <a href="http://www.cs.usfca.edu/~wswatanabe/div.html">My Divided Article</a> <br/> <p style=background-color:purple>Hi my name is Wrenn. I am a freshman at USF. Curruntly I am studying to be a graphic design major. I am from Honolulu, Hawaii </p> <img src="http://www.partialobserver.com/wallpaper/images/RidingTheGreatWave/RidingTheGreatWave400.jpg"/> <br/> <a href="http://www.facebook.com/photo.php?pid=50766&op=4&o=global&view=global&subj=531126607&id=1435953036#/profile.php?id=531126607&ref=profile"><img src="http://photos-g.ll.facebook.com/photos-ll-sf2p/v323/160/28/1435953036/n1435953036_50766_5018.jpg"/></a> <p style=background-color:purple> Click the picture above to go to my facebook.</p> |
