Twin color ribbon and sphere. Draw by openFrameworks

[ Video ]

[ About ]

The sphere in the middle changes color based on its distance from the ribbon.

[ Source ]

void setup();
void update();
void draw();

void keyPressed(int key) {};
void keyReleased(int key) {};
void mouseMoved(int x, int y) {};
void mouseDragged(int x, int y, int button) {};
void mousePressed(int x, int y, int button) {};
void mouseReleased(int x, int y, int button) {};
void windowResized(int w, int h) {};
void dragEvent(ofDragInfo dragInfo) {};
void gotMessage(ofMessage msg) {};

ofEasyCam cam;
ofMesh face, line, sphere_face, sphere_line;
vector<ofMeshFace> triangle_list;

glm::vec3 blue_location;
glm::vec3 red_location;

[ Link ]


[ Sponsor Link ]