I have a rectangle, I would like to stroke it with 1px dashed line that is typical of selection objects we see in image editors.
I was researching methods, and was wondering which would be most performant?
- Should I draw a recntangle then go through and clear the gaps?
- Should I use
dashedLine
from here to draw for 4 dashed lines? https://stackoverflow.com/a/4577326/1828637 - Any other methods?
Thanks