static      up
blank.gif (811 bytes)
7a
m.gif (1431 bytes) blackswirls.gif (1374 bytes) palmer.gif (3094 bytes)
starburstti.gif (2755 bytes)
blank.gif (811 bytes)
down
blank.gif (811 bytes)
home



Create a general method for abstractly filling the DBN paper area at variable percentages. In a display loop, show the 25 percent, 50 percent, and 75 percent solutions in rotation.

#
import math

while 1:
# 25 percent
 for m in range(-1, 120):
  g.pen(100)
  angle = (m /55.0) * math.pi
  radius = 80
  x = int(70 + math.sin(angle)*radius)
  y = int(70 + math.cos(angle)*radius)
  g.line(100, 100, x, y)
  g.pause(1)

# 50 percent
 for m in range(-5, 50):
  g.pen(100)
  angle = (m /55.0) * math.pi
  radius = 80
  x = int(20 + math.cos(angle)*radius)
  y = int(20 + math.sin(angle)*radius)
  g.line(0, 0, x, y)
  g.pause(1)

# 75 percent
 for m in range(0, 80):
  g.pen(100)
  angle = (m /30.0) * math.pi
  radius = 80
  x = int(50 + math.cos(angle)*radius)
  y = int(50 + math.sin(angle)*radius)
  g.line(50, 50, x, y)
  g.pause(1)
  
 g.paper(0)