Allow solid colored glyphs have a different colored outline
Compare changes
+ 21
− 0
@@ -55,6 +55,12 @@ type GlyphStyle struct {
@@ -106,6 +112,11 @@ func (CircleGlyph) DrawGlyph(c *Canvas, sty GlyphStyle, pt vg.Point) {
@@ -156,6 +167,11 @@ func (BoxGlyph) DrawGlyph(c *Canvas, sty GlyphStyle, pt vg.Point) {
@@ -185,6 +201,11 @@ func (PyramidGlyph) DrawGlyph(c *Canvas, sty GlyphStyle, pt vg.Point) {
Created by: kortschak
How about using a
LineStyle
here? Comment would be:Created by: zaddok
Great suggestion, I would like that idea, except for the fact that
LineStyle
also includes aDashes
and aDashOffs
field—they would be effectively unused. I'm happy to switch the patch over to useLineStyle
if that is what people prefer.PS: Yikes, I need to fix the wording of that comment as well.
Created by: kortschak
There's no reason not to allow dashed outlines for glyphs.