2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
title: Drawing circles
|
|
|
|
for: developers
|
|
|
|
about: Shows how you can add circles to your pattern
|
2021-10-17 18:26:00 +02:00
|
|
|
---
|
2021-08-25 16:09:31 +02:00
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
Real circles are rarely used in pattern design, and they are not part of the SVG path specification,
|
2021-08-25 16:09:31 +02:00
|
|
|
but rather a different SVG element.
|
|
|
|
|
2022-02-19 08:04:25 +01:00
|
|
|
Still, if you want a circle, you can draw one by setting a Point's `data-circle` attribute
|
2021-08-25 16:09:31 +02:00
|
|
|
to the radius of the circle you want to draw.
|
|
|
|
|
|
|
|
In addition, all attributes that have a `data-circle-` prefix will apply to the circle, rather than the point.
|
|
|
|
|
2022-01-19 12:37:30 +01:00
|
|
|
<Example pattern="rendertest" options_only="circles">
|
2022-01-19 11:31:39 +01:00
|
|
|
Circles
|
|
|
|
</Example>
|