Views
2 weeks ago

## 9. Shapes and Animation

9. Shapes and Animation Ellipse Ellipse represents an ellipse with parameters specifying size and location. ellipse { centerX = 50.0 centerY = 50.0 radiusX = 100.0 radiusY = 50.0 fill = Color.CORAL } Line Line is fairly straight forward. Supply start and end coordinates to draw a line between the two points. line { startX = 50.0 startY = 50.0 endX = 150.0 endY = 100.0 } 136

9. Shapes and Animation Polyline A Polyline is defined by an array of segment points. Polyline is similar to Polygon , except it is not automatically closed. polyline(0.0, 0.0, 80.0, 40.0, 40.0, 80.0) QuadCurve The Quadcurve represents a quadratic Bézier parametric curve segment in (x,y) coordinate space. Drawing a curve that intersects both the specified coordinates ( startX , startY ) and ( endX , endY ), using the specified point ( controlX , controlY ) as Bézier control point. 137

GUIDE
GUIDE
GUIDE
Guide
Guide
guide
Guide
GUIDE
GUIDE
Guide
GUIDE
GUIDE
GUIDE
GUIDE
GUIDE
GUIDE
GUIDE
GUIDE
GUIDE
Guide
The Guide
Guide
Guides