#CetZ radius on line() that forms a polygon with close:true

4 messages · Page 1 of 1 (latest)

mental sphinx
#

?r

#import "@preview/cetz:0.2.2"

#cetz.canvas({
  import cetz.draw: *

line(
(0,0),(1,0),(1,1),(0,1),
  radius: 0.5,
  close:true,
  fill:orange,
  stroke:3pt)
})```
mental sphinx
#

I wanted to reach out to the CetZ devs and see if this was expected behavior for closed (or any set of lines)?

If it is, is there an easy-ish way to get my corners rounded?

thanks!

finite nacelle
#

cc @autumn mulch @tame smelt