Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this PageUploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Sp2003 HW3 Collages

Upload your HW3 resultant collages (NOT your code) here!

Please watch that you make your filename something that isn't already attached!


Uploaded Image: flowerCollage.jpg

Uploaded Image: kylecollage.jpg Kyle DuPont


Here's a little flower collage I made using a smaller canvas. Included is mirroring, scaling, and transparency. Enjoy! Adam Wilson:
Uploaded Image: AdamWsCollage.jpg
Okay, I give, Adam – how did you do transparency in Jython?!? Mark Guzdial
Why, magic of course! Seriously, All I did was examine the colors of both the target and the source pixels when deciding what the new target pixel color should be. You can weight the colors in certain ways. For the middle picture I gave the source pixel a weight of 0.8, and the target pixel a weight of (1.0 - 0.8). For the corner ones, I gave the source a 0.5 weight. It's easy and fun! Adam Wilson
#This is the function I used to do the transparency above
#Merge takes in 2 pixels and a weight and makes a combination of them
#@return: the resultant color
def merge(pix1, pix2, weight)
  if weight > 1.0:
    return getColor(pix1)
  if weight < 0.0:
    return getColor(pix2)
  else:
    r = (getRed(pix1) * weight) + (getRed(pix2) * (1 - weight))
    g = (getGreen(pix1) * weight) + (getGreen(pix2) * (1 - weight))
    b = (getBlue(pix1) * weight) + (getBlue(pix2) * (1 - weight))
    return makeColor(r, g, b)


Uploaded Image: Summer'sZoo.jpg

Missing File (/cs1315/uploads/mycollage.jpg)
(You have to attach the file, then the link gets inserted here automatically.)
Uploaded Image: Kellyollage.jpg
Kelly Farrell

Uploaded Image: lvbcollage.jpg
ok, so I can't do anything as interesting as Kyle Dupont or Adam Wilson. But here's what I made.
Lauren Biddle




ELIJAH KARNLEY

Uploaded Image: collage.jpg





Uploaded Image: hw3.jpg
yay i finally got it to work! :D
Whitney Watts

Uploaded Image: CatCollage.jpg
Michelle Tougas

Links to this Page