meltingice / CamanJS

Javascript HTML5 (Ca)nvas (Man)ipulation
http://camanjs.com
BSD 3-Clause "New" or "Revised" License
3.56k stars 406 forks source link

Curves with two points? #108

Open confile opened 11 years ago

confile commented 11 years ago

I need a curve with two points (0,37) to (255,255). How can I do that? I found that you can only have curves with 3 or 4 coordinates.

I search for this:

this.curves('g', [0, 37], [255, 255]);

Can I do the following to get the needed result?

this.curves('g', [0, 37], [0, 37], [255, 255]);

of

this.curves('g', [0, 37], [255, 255], [255, 255]);
bebraw commented 11 years ago

If #114 gets merged, it should solve this issue.