Skip to main content

Circle

WLJS
Execution environment
Supports dynamics

draws a circle with a given radius r

Circle[{x_,y_}, r_]

for example

Graphics[Table[Circle[RandomReal[{-1,1}, 2], 1], {i,10}]]

Parameters

See Disk

Dynamics

Fully support for a radius and coordinates. Use Offload

pt = {0,0};
Graphics[{
EventHandler[Graphics`Canvas[], {
"mousemove" -> Function[xy, pt = xy]
}], Red,
Circle[pt // Offload, 0.08]
}, PlotRange->{{-1,1}, {-1,1}}]