| Language \ Environment \ Comparison |

| Index

| The Processing 1.0 _ALPHA_ Reference is a work in progress. If you see any errors or have any comments, please write to: reas at groupc.net

Name |  | ### curve()
Examples |  |
    curve(10, 26, 83, 24, 83, 61, 25, 65);
Description |  | Draws a curved line on the screen. The first and second parameters specify the first point of the curve and the last two parameters specify the second point of the curve. The middle parameters set the points for defining the shape of the curve. An additional function called curveMode() provides control for the visual quality of the curve. The curve() function is an implementation of Catmull-Rom splines.
Syntax |  |
    curve(x1, y1, x2, y2, x3, y3, x4, y4);
Parameters |  |
x1 |  | int or float: x-coordinate of the first point
y1 |  | int or float: y-coordinate of the first point
x2 |  | int or float: x-coordinate of the second point
y2 |  | int or float: y-coordinate of the second point
x3 |  | int or float: x-coordinate of the third point
y3 |  | int or float: y-coordinate of the third point
x4 |  | int or float: x-coordinate of the fourth point
y4 |  | int or float: y-coordinate of the fourth point
Returns |  | None
Usage |  | Web & Application
Related |  | curveVertex() bezier()

| © 2004 - 2001 Massachusetts Institute of Technology and Interaction Design Institute Ivrea |
| Processing is an open project initiated by Ben Fry and Casey Reas |