map-dots/imaging/generate.go

15 lines
343 B
Go
Raw Normal View History

2023-08-11 14:32:44 +01:00
package imaging
2023-08-11 15:33:18 +01:00
import (
"fmt"
"image"
"git.fjla.uk/fred.boniface/map-dots/log"
)
2023-08-11 14:32:44 +01:00
2023-08-11 14:53:28 +01:00
func Generate(height, width int, style, format string, data []string) image.Image {
2023-08-11 15:33:18 +01:00
log.Msg.Debug("Image generation request: " + fmt.Sprint(width) + "x" + fmt.Sprint(height) + " " + format + " " + style)
2023-08-11 14:32:44 +01:00
img := createCanvas(width, height)
return img
}