curve

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
curve
Summary

Designates the paint tool used to draw curved lines. It also specifies, through the style property, that a graphic is a curved line.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
choose curve tool
set the style of last graphic to curve
RelatedKeyword: graphic, line, lines
Property: style, points, penPattern, penColor
Command: choose
Object: graphic
Glossary: object, property, keyword, paint tool
Description

Use the curve keyword to paint a curved line with the penColor or to change a graphic object to a curved line.

When using the Curve tool, the cursor is a crosshairs shape (over stack windows) or an arrow (anywhere else). This tool is used to draw a freehand line in the penColor (or penPattern).

If you try to paint with the Curve tool on a card that has no images, an image the size of the card is created to hold the painting. If the current card already has one or more images, painting outside the image has no effect.

Setting the style of a graphic to curve makes the graphic into a curved line. Curve graphics, unlike painted curves, can be changed and reshaped: use the points property to change the shape of the curve.