Pulsating Heart made from Bezier-Curves in processing
I made a short processing sketch that shows how to use the bezierVertex command. It can be used to draw a curve between a start- and an endpoint, using two control points (similar to the curve elements vector graphic programms use).
The following code block draws a heart in processing.
beginShape();
vertex(150,150);
bezierVertex( 150,120, 100,120, 100, 150);
bezierVertex( 100,180, 150,185, 150, 210 );
bezierVertex( 150,185, 200,180, 200, 150 );
bezierVertex( 200,120, 150,120, 150, 150 );
endShape();
click here to see the heart pulsing and the background rotating or download the code.
See also:
sketch experiment 7 - osc events
nested cubes in processing
processing phaseflower
Time Perception
de jong attractor
nested cubes in processing
processing phaseflower
Time Perception
de jong attractor
cool
where can i download the code for the animation?