

It opens the main application window with n().įrom import Flock It defines a draw() function and attaches it to the canvas, so that it will be drawn each animation frame. It imports the aphics module with the standard set of drawing commands. To get started, try out some examples, or open and edit examples/test.py.īelow is a typical NodeBox script. This will open an application window with the output of your script. The documentation works in conjunction with the examples folder: subjects are touched here and demonstrated in more detail across various examples.įrom the command line, you can run a script with: python example.py (or command-R in TextMate). Users are assumed to have knowledge of Python (functions & classes) and NodeBox (the original docs are more verbose). You can use the IDLE editor bundled with Python. NodeBox for OpenGL does not have a built-in code editor. You'll need a 32-bit Python (version 2.5 or 2.6) and Pyglet to run it.

Screenshot: examples/07-filter/03-mirror.py Quick overview It has built-in support for paths, layers, motion tweening, hardware-accelerated image effects, simple physics and interactivity.
Nodebox import csv for mac os x#
It is built on Pyglet and adopts the drawing API from NodeBox for Mac OS X ( ).

NodeBox for OpenGL is a free, cross-platform library for generating 2D animations with Python programming code.
