From the course: Processing: Interactive Data Visualization
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Drawing Bézier curves - Processing Tutorial
From the course: Processing: Interactive Data Visualization
Drawing Bézier curves
The last shape that we're going to learn to draw is a Bezier curve which is a very common function in computer graphics, because it allows you get to get nice smooth flowing lines that are used in a lot of illustrations. For instance, if you work with Adobe Illustrator, you'd be doing a lot of Bezier curves there as well. The format of the Bezier function and Processing is similar to what we've seen already and that you specify what are called anchor points, those are the beginning and end of the curve and the X and Y coordinates for each of those as well as control points which are not drawn, but influence the shape of what does appear, so let me show you how this works with an example. First, I'll begin by labeling the drawing, setting the size of the window, turning on anti-aliasing, put in the background color, I'm going to use a relatively neutral color. Let's see what we've got here, okay, pretty neutral gray. Then what I'm going to do. Always, I'm going to turn off the fill…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
Basic setup7m 31s
-
Drawing points4m 37s
-
Drawing lines5m 6s
-
Drawing ellipses and circles5m 24s
-
Drawing arcs6m 54s
-
Drawing rectangles and squares4m 58s
-
Drawing quadrangles3m 25s
-
Drawing triangles2m 55s
-
Drawing polygons3m 37s
-
Drawing simple curves4m 54s
-
Drawing complex curves6m 46s
-
Drawing Bézier curves5m 38s
-
-
-
-
-
-
-
-
-
-
-
-
-