polygon_heart
Draw a heart curve
polygon_heart(
x,
y,
radius,
[variant=1],
[rotation=0],
[segments=100],
[draw=true],
[stroke=#000000],
[fill=#FFFFFF],
[weight=1.00]
)
Draw a heart curve
Syntaxe
polygon_heart(x=100, y=100, radius=80, variant=1, stroke="#FF0000", fill="#FF6688", weight=2);
Arguments
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
x | yes | - | x-coordinate of the center | |
y | yes | - | y-coordinate of the center | |
radius | yes | - | Radius (half-width) of the heart | |
variant | - | 1 | Heart curve variant: 1=classic (default), 2=nephroid, 3=cardioid | |
rotation | - | 0 | Rotation in radians (default=0) | |
segments | - | 100 | Number of segments for curve precision | |
draw | - | true | If false, return a list of points, and don't draw (stroke, fill & weight are ignored) | |
stroke | - | #000000 | Stroke color | |
fill | - | #FFFFFF | Fill color | |
weight | - | 1.00 | Stroke weight (thickness) |