More
See all Show me
4. NodeBox Test 1 (Dots)
2 years ago
3. Flash Test
3 years ago
2. Rotterdam
3 years ago
1. The Studio
4 years ago
My first video export/code test from the Python based programming environment NodeBox.

Source Code:

#Begin Source

size(700, 700)
speed(50)


boids = ximport("boids")
reload(boids)

def setup():

global flocks
flocks = []
for i in range(4):
flock = boids.flock(20, 0, 0, WIDTH, HEIGHT)
flock.goal(WIDTH/2, HEIGHT/2, 0)
flocks.append(flock)

def draw():

colormode(HSB)
global flocks

for flock in flocks:
flock.update()

for boid in flock.boids:

r = boid.z / 4
#r += 10
f = boid.fill
#f.a = 0.5+ boid.z/100
fill(random(0,0.8), random(0.2,0.5), 0.8, random(0.9,7.5))
push()
oval(boid.x-r/2, boid.y-r/2, r, r)
pop()

fill(0.01)
oval(250,245,200,200)



fill(240)
fontsize(20)
font("Times")
w = textwidth("your text here")
text("your text here", WIDTH/2-w/2, HEIGHT/2)

# End Source

Credits

1 Like

This conversation is missing your voice. Take five seconds to join Vimeo or log in.

Advertisement

Statistics

  •  
    plays
    likes
    comments
  • Total
    plays 417
    likes 1
    comments 0
  • Dec 23rd
    plays 0
    likes 0
    comments 0
  • Dec 22nd
    plays 0
    likes 0
    comments 0
  • Dec 21st
    plays 0
    likes 0
    comments 0
  • Dec 20th
    plays 0
    likes 0
    comments 0
  • Dec 19th
    plays 0
    likes 0
    comments 0
  • Dec 18th
    plays 0
    likes 0
    comments 0
  • Dec 17th
    plays 0
    likes 0
    comments 0
  • Dec 16th
    plays 0
    likes 0
    comments 0
Previous Week

Downloads

Please join Vimeo or log in to download the original file. It only takes a few seconds.