Home › Forums › Nazca › Drawing Ellipses › Reply To: Drawing Ellipses
22 July 2020 at 13:57
#6196
Xaveer
Moderator
Hi Raphael,
You can just define the points of the ellipse yourself in a loop, or you could use the Nazca circle() and transform the points. Here is an example:
import nazca as nd circle = nd.geometries.circle(radius=5, N=20) ellipse = [(x * 0.5, y) for x, y in circle] nd.Polygon(points=ellipse, layer=1).put() nd.export_gds()
Xaveer