PLAYGROUND (experimental)

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

NameTypeRequiredDefaultDescription
xyes-x-coordinate of the center
yyes-y-coordinate of the center
radiusyes-Radius (half-width) of the heart
variant-1Heart curve variant: 1=classic (default), 2=nephroid, 3=cardioid
rotation-0Rotation in radians (default=0)
segments-100Number of segments for curve precision
draw-trueIf false, return a list of points, and don't draw (stroke, fill & weight are ignored)
stroke-#000000Stroke color
fill-#FFFFFFFill color
weight-1.00Stroke weight (thickness)