Views
8 months ago

tornadofx-guide

9. Shapes and Animation

9. Shapes and Animation quadcurve { startX = 0.0 startY = 150.0 endX = 150.0 endY = 150.0 controlX = 75.0 controlY = 0.0 fill = Color.BURLYWOOD } SVGPath SVGPath represents a shape that is constructed by parsing SVG path data from a String. svgpath("M70,50 L90,50 L120,90 L150,50 L170,50 L210,90 L180,120 L170,110 L170,200 L70, 200 L70,110 L60,120 L30,90 L70,50") { stroke = Color.DARKGREY strokeWidth = 2.0 effect = DropShadow() } 138

9. Shapes and Animation Path Path represents a shape and provides facilities required for basic construction and management of a geometric path. In other words, it helps you create a custom shape. The following helper functions can be used to constuct the path: moveTo(x, y) hlineTo(x) vlineTo(y) quadqurveTo(controlX, controlY, x, y) lineTo(x, y) arcTo(radiusX, radiusY, xAxisRotation, x, y, largeArcFlag, sweepFlag) closepath() 139

GUIDE
GUIDE
GUIDE
Guide
Guide
GUIDE
GUIDE
GUIDE
Guide
GUIDE
Guide
GUIDE
Guide
GUIDE
GUIDE