aboutsummaryrefslogtreecommitdiff
path: root/image.go
blob: 08235761718cb653cac556a4de4506e31879fd30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13

package main

import (
	"image/color"

	"github.com/hajimehoshi/ebiten/v2"
)

func NewColorImage(size Point, color color.Color) *ebiten.Image {
	image := ebiten.NewImage(size.X, size.Y)
	image.Fill(color)
	return image
}