Pulsating Heart made from Bezier-Curves in processing

Nikolaus Gradwohl2010-09-19T08:09:02+00:00

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.

heart from bezier-curves

Tweet This! submit to reddit Digg! Tags: | 2 comments | no trackbacks

See also:

sketch experiment 7 - osc events
nested cubes in processing
processing phaseflower
Time Perception
de jong attractor

Trackbacks

Comments

Leave a response

  1. lindawow 2010-11-18T08:10:00+00:00

    cool

  2. adil 2014-10-08T07:24:25+00:00

    where can i download the code for the animation?

Leave a comment