Picture This
Sunday, January 22, 2012
Final Entry
This being my first computer science class I am very pleased with what I have accomplished. Being able to write some filters was as exciting as playing with pictures was. I am very pleased with my final centerpiece. It is almost exactly what I was going for. It ended up having fairies instead of animals but I have totally stepped into the wonderful world of Disney. I had a couple of missteps with placing a foreground, mostly because I thought of it as swapping a background. It was also time consuming to place each individual fairy and to make sure they had good sizing. Writing down coordinates was very helpful. I ended up making another piece that could have been a centerpiece too. It has the northern lights and a silhouette of an ice-skater. There isn't a lot of deep meaning in my centerpiece but it is absolutely fun to look at. I have made it my profile picture on facebook. I have had a lot of fun in this class and look forward to taking more computer science in the future.
Thursday, January 19, 2012
There is something satisfying about seeing a project come together. after sitting at a computer for several hours at a time I am finally satisfied with my centerpiece. Placing 15 images into one big one is time consuming... I'm now looking at doing some more little pieces for the portfolio. Color is still fun to play with :)
Wednesday, January 18, 2012
YAY!
filter to place a foreground into a background...its made for a gray screen rather than a green screen.
def placeFore( big, lil, x, y ):
cWid = getWidth( big )
xLim = x + getWidth(lil)
if xLim > cWid:
xLim = cWid
cHt = getHeight( big )
yLim = y + getHeight( lil )
if yLim > cHt:
yLim = cHt
xlil = 0
for j in range( x,xLim ):
ylil = 0
for k in range( y, yLim ):
p = getPixel(lil, xlil, ylil )
if getRed(p)== getBlue(p)== getGreen(p) and 100<getRed(p)<255:
pass
else:
newColor = getColor(p)
setColor( getPixel( big, j,k), newColor )
ylil = ylil + 1
xlil = xlil + 1
def placeFore( big, lil, x, y ):
cWid = getWidth( big )
xLim = x + getWidth(lil)
if xLim > cWid:
xLim = cWid
cHt = getHeight( big )
yLim = y + getHeight( lil )
if yLim > cHt:
yLim = cHt
xlil = 0
for j in range( x,xLim ):
ylil = 0
for k in range( y, yLim ):
p = getPixel(lil, xlil, ylil )
if getRed(p)== getBlue(p)== getGreen(p) and 100<getRed(p)<255:
pass
else:
newColor = getColor(p)
setColor( getPixel( big, j,k), newColor )
ylil = ylil + 1
xlil = xlil + 1
Tuesday, January 17, 2012
fixed...and otherwise
HE HAS RIPPLES!!! |
I am annoyed at the birds... they are not cooperating. I am trying to modify swapbg so that it will detect gray instead of green and it will place a smaller picture in a larger picture like placeInCanvas does. I have gotten it to change the gray background but the small picture stays small and the coloring in the background is too dark. grrrrrrr.
what colour are your bits?
The person who wrote this is very long winded. I think that I understand what they are trying to get at but parts of the post seem contradictory. How is it that there is no colour but viruses are detected by their colour? Perhaps I was misunderstanding what they meant by colour not existing. I don't know that colour is as important as content but I can see that it could be important with some writing and phraseology.
an Attempt at putting ripples at his feet...
Subscribe to:
Posts (Atom)