maria icon indicating copy to clipboard operation
maria copied to clipboard

Adding a stroke-width to circles causes them to exceed viewable boundaries

Open daveliepmann opened this issue 7 years ago • 4 comments

Issue:

Circles with stroke-width > 0 exceed the height and width of their containing SVG:

(defn hollow-circle [size]
  (stroke "black" (stroke-width 5 (fill "none" (circle size)))))

(hollow-circle 50)
screen shot 2018-03-02 at 4 03 25 pm

daveliepmann avatar Mar 02 '18 15:03 daveliepmann

kinda nice aesthetic tho

jackrusher avatar Mar 02 '18 15:03 jackrusher

kinda nice aesthetic tho

I prefer:

(defcell clock (interval 100 inc))

(cell (rotate @clock (square 100)))

daveliepmann avatar Mar 04 '18 17:03 daveliepmann

Oo, I like that. Pairs well with:

(cell (colorize (hsl (mod @clock 360) 80 80)
                (rotate @clock (square 100))))

jackrusher avatar Mar 04 '18 17:03 jackrusher

Partially fixed in https://github.com/mhuebert/maria/commit/ace3aca1a4bba37b8bcdac87dd44d08d03a94065

jackrusher avatar Mar 06 '18 14:03 jackrusher