# Cubic Bezier Curves

**URL:** https://forum.kirupa.com/t/cubic-bezier-curves/197158
**Category:** open source
**Created:** [August 14, 2006, 12:03pm UTC](https://forum.kirupa.com/t/cubic-bezier-curves/197158 "2006-08-14T12:03:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mathew\_er](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@mathew\_er](https://forum.kirupa.com/u/mathew_er)
#### Post date: [August 14, 2006, 12:03pm UTC](https://forum.kirupa.com/t/cubic-bezier-curves/197158/1 "2006-08-14T12:03:21Z")

</div>

Here you go…

Its all fully commented and documented.

What it can do? Draw a cubic bezier curve with AS (the one with two controll points).

It has several parameters, that is, array of points, number of sergments and line properties as thickness, etc.

I tried to optimize it as much as possible… one line can take from one to two milliseconds.

[AS file link](http://www.mumu.cz/tmp/com/metju/geom/CubicBezier.as)  
[Example link](http://www.mumu.cz/tmp/bezierTest.html)

and also a link to the [Benchmark class](http://www.mumu.cz/tmp/com/metju/utils/Benchmark.as) used in the example
