Notes:
Weird! Control points can be used to smooth out or even twist the edges of a rectangle to create things that don't even look like rectangles! Borders and/or fills are optional; the control points can be hidden or shown as desired. The green shape above shows the blue control points and center.
Features and Usage:
| Primary Attributes: |
7 Parameters: Note: accentColor can be changed as shown and center and/or vertices can be shown as well |
|---|---|
| To Create: Green Example |
var theCenter = new TNTPoint(-5, 5); |
| To Draw: |
myRectangle2.drawTNTRoundedRectangle(context); |
| Comments: | If you look at the tntGraphics source code for TNTRoundedRectangle, you will notice that it uses a special function, quadraticCurveTo to make the curved edges. Check it out! |
