From 9734cdd16e1b7572464dfaed3bd03a70db46a3d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Wed, 9 Jun 2021 23:16:50 +0200 Subject: bdf: make it possible to set the drawing colour Intended for red and black tapes. --- cmd/bdf-sample/main.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cmd/bdf-sample') diff --git a/cmd/bdf-sample/main.go b/cmd/bdf-sample/main.go index 1850118..e8a2b94 100644 --- a/cmd/bdf-sample/main.go +++ b/cmd/bdf-sample/main.go @@ -2,6 +2,7 @@ package main import ( "image" + "image/color" "image/draw" "image/png" "log" @@ -26,7 +27,7 @@ func main() { img := image.NewRGBA(super) draw.Draw(img, super, image.White, image.ZP, draw.Src) - font.DrawString(img, image.ZP, font.Name) + font.DrawString(img, image.ZP, color.Black, font.Name) fo, err := os.Create("out.png") if err != nil { -- cgit v1.2.3