JuliaGraphics / Luxor.jl

Simple drawings using vector graphics; Cairo "for tourists!"
http://juliagraphics.github.io/Luxor.jl/
Other
588 stars 71 forks source link

How to find the current line thickness #253

Closed StevenSiew closed 1 year ago

StevenSiew commented 1 year ago

When drawing lines, I can set the line thickness with

setline(4)

But for the life of me I could not figure out how to get the current line thickness. The reason I need this is because I have functions which draw lines for me and I need to check the current line thickness before I draw. If the current line thickness is WRONG then I remember the current line thickness and set it to the correct thickness value then draw my lines and then set it back to the previous value.

cormullion commented 1 year ago

http://juliagraphics.github.io/Luxor.jl/dev/explanation/luxorcairo/#Adding-Cairo-functions might help ...

Added getline() for version 3.7.0.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.