dynamicup
blank.gif (811 bytes)
8b
m.gif (1431 bytes) palmer.gif (3094 bytes)
varietyti.gif (3047 bytes)
blank.gif (811 bytes)
down
blank.gif (811 bytes)
home


Choose 1 of your 10 keyverbs/keyadjectives from class and represent it as a single interactive piece with no typography. No static representations allowed. Many in class used nouns -- no nouns allowed. Be sure to leave the keyverb/keyadjective as a comment at the top of your code.

keyword: varied

#
# varied: this piece shows several forms of mass media,
# namely newspapers, televisions, and movies.

g.paper(50)
import math

def newspaper(a):
 for b in range(0,10):
  g.pen(100)
  y = g.getMouse(1)
  g.line(y,(b+10),a,(b+10))
  g.line(y,(b+22),(a-3),(b+22))
  g.line(y,(b+34),(a+10),(b+34))
  g.line(y,(b+47),(a+15),(b+47))
  g.line(y,(b+62),(a*(3/2)),(b+62))
 
def tv(b):
 g.pen(0)
 g.line(10,70,85,(b+30))
 g.line(85,(b+30),75,20)
 g.line(75,20,30,(30-b))
 g.line(30,(30-b),10,70)
 
def projector():
 for m in range(0, 30):
  z = g.getMouse(2)
  g.pen(z)   
  angle = (m /55.0) * math.pi
  radius = (z-60)
  x = int(70 + math.sin(angle)*radius)
  y = int(70 + math.cos(angle)*radius)
  g.line(90, 80, x, y)

while 1:
 for n in range(0,50):
  newspaper(n)
  tv(n)
  projector()
  g.paper(50)
  g.pause(1)