GiovineItalia / Compose.jl

Declarative vector graphics
http://giovineitalia.github.io/Compose.jl/latest/
Other
248 stars 83 forks source link

Rectangle rotation doesn't work #436

Closed isopteryx closed 1 year ago

isopteryx commented 1 year ago

The following doesn't rotate a rectangle, just shifts it a bit:

compose(
    context(rotation=Rotation(π/3)),
    rectangle(0.2w, 0.2h, 0.6w, 0.6h),
    fill(colorant"orange"))

For ellipse the same code produces an expected result.

Julia version 1.6.0, Compose v0.9.2.

Mattriks commented 1 year ago

Yes there was PR #338, but it ran into issues (to be resolved!)

isopteryx commented 1 year ago

Thank you, sorry for duplicate.

isopteryx commented 1 year ago

I followed the #338, and now just use polygon with 4 points instead.