fix colors for stroke font in helloworld
This commit is contained in:
parent
5d7c08c52f
commit
da9799659c
1 changed files with 2 additions and 0 deletions
|
@ -46,10 +46,12 @@ func Draw(gc draw2d.GraphicContext, text string) {
|
||||||
|
|
||||||
gc.Save()
|
gc.Save()
|
||||||
gc.SetFillColor(color.NRGBA{0xFF, 0x33, 0x33, 0xFF})
|
gc.SetFillColor(color.NRGBA{0xFF, 0x33, 0x33, 0xFF})
|
||||||
|
gc.SetStrokeColor(color.NRGBA{0xFF, 0x33, 0x33, 0xFF})
|
||||||
gc.Translate(145, 85)
|
gc.Translate(145, 85)
|
||||||
gc.StrokeStringAt(text, -50, 0)
|
gc.StrokeStringAt(text, -50, 0)
|
||||||
gc.Rotate(math.Pi / 4)
|
gc.Rotate(math.Pi / 4)
|
||||||
gc.SetFillColor(color.NRGBA{0x33, 0x33, 0xFF, 0xFF})
|
gc.SetFillColor(color.NRGBA{0x33, 0x33, 0xFF, 0xFF})
|
||||||
|
gc.SetStrokeColor(color.NRGBA{0x33, 0x33, 0xFF, 0xFF})
|
||||||
gc.StrokeString(text)
|
gc.StrokeString(text)
|
||||||
gc.Restore()
|
gc.Restore()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue