O'Reilly logo

Cinder – Begin Creative Coding by Krisjanis Rijnieks

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

BezierPath

Now, we are ready for a little bit more of a complicated example that will allow you to draw a continuous Bézier curve. Bézier curves are called so because of a french engineer Pierre Bézier who actually patented and made them popular by applying them in designs. Bézier curves are widely used in computer graphics, animations, and other fields. The concept of Bézier curves allows us to create parametric curved lines by using the Cartesian coordinate system and numbers.

Go to your Cinder samples folder (/Users/You/cinder/samples/ on Mac OS X and C:\cinder\samples\ if you use Windows).

Go to the folder named bezierPath. Open xcode/bezierPath.xcodeproj, if you are a Mac OS X user (vc10\bezierPath.sln, if you are using Windows). Compile and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required