From da9799659c002a321e196dc8e70e13024ea06d9b Mon Sep 17 00:00:00 2001 From: Stani Date: Sun, 12 Jul 2015 02:34:34 +0200 Subject: [PATCH] fix colors for stroke font in helloworld --- samples/helloworld/helloworld.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/samples/helloworld/helloworld.go b/samples/helloworld/helloworld.go index 301edcd..1c1eba1 100644 --- a/samples/helloworld/helloworld.go +++ b/samples/helloworld/helloworld.go @@ -46,10 +46,12 @@ func Draw(gc draw2d.GraphicContext, text string) { gc.Save() gc.SetFillColor(color.NRGBA{0xFF, 0x33, 0x33, 0xFF}) + gc.SetStrokeColor(color.NRGBA{0xFF, 0x33, 0x33, 0xFF}) gc.Translate(145, 85) gc.StrokeStringAt(text, -50, 0) gc.Rotate(math.Pi / 4) gc.SetFillColor(color.NRGBA{0x33, 0x33, 0xFF, 0xFF}) + gc.SetStrokeColor(color.NRGBA{0x33, 0x33, 0xFF, 0xFF}) gc.StrokeString(text) gc.Restore() }