aboutsummaryrefslogtreecommitdiffstats
path: root/examples/imageviewer/util.go
diff options
context:
space:
mode:
authorfaiface <faiface2202@gmail.com>2019-05-07 22:40:27 +0200
committerfaiface <faiface2202@gmail.com>2019-05-07 22:40:27 +0200
commitde5d2f5c78da7f8a578ecc25f8e8b1fa90f20264 (patch)
tree86819fcf0982d67766da98f6fd13d7ae2b103f52 /examples/imageviewer/util.go
parent4324b480c2170ac435ee85988d0260e5f38259b3 (diff)
downloadgui-de5d2f5c78da7f8a578ecc25f8e8b1fa90f20264.zip
examples/imageviewer: rename DrawText to MakeTextImage
Diffstat (limited to 'examples/imageviewer/util.go')
-rw-r--r--examples/imageviewer/util.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/imageviewer/util.go b/examples/imageviewer/util.go
index 94f25fb..e799988 100644
--- a/examples/imageviewer/util.go
+++ b/examples/imageviewer/util.go
@@ -63,7 +63,7 @@ func TTFToFace(ttf []byte, size float64) (font.Face, error) {
})}, nil
}
-func DrawText(text string, face font.Face, clr color.Color) image.Image {
+func MakeTextImage(text string, face font.Face, clr color.Color) image.Image {
drawer := &font.Drawer{
Src: &image.Uniform{clr},
Face: face,