OpenCode
Code
People
Discuss
Information
OPENCODE
is a web-based programming environment that leverages the user community to foster creative development and teach graphics-based programming to non-programmers.
Sign up
for an account now!
//path aligner // by irag //import processing.opengl.*; int pathNodeCount = 1000; // Any path can be used, as spine of Tendril Vector3D[] path = new Vector3D[pathNodeCount]; Tendril tendril; void setup(){ size(400, 400, P3D); background(255, 255, 255); frameRate(30); float px=0.0f, py=0.0f, pz=0.0f, ang=0.0f, ang2 = 0.0f, ang3 = 0.0f, rad=10.0f; float tx = 0.0f, ty = 0.0f, tz = 0.0f; // generate points along any path for (int i=0; i