aboutsummaryrefslogtreecommitdiff
path: root/image.go
diff options
context:
space:
mode:
Diffstat (limited to 'image.go')
-rw-r--r--image.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/image.go b/image.go
index c95dd94..0823576 100644
--- a/image.go
+++ b/image.go
@@ -11,11 +11,3 @@ func NewColorImage(size Point, color color.Color) *ebiten.Image {
image.Fill(color)
return image
}
-
-func NewHaloImage(sourceImage *ebiten.Image, color color.Color, width int) *ebiten.Image {
- image := NewColorImage(sourceImage.Bounds().Size().Add(Point{2 * width, 2 * width}), color)
- op := &ebiten.DrawImageOptions{}
- op.GeoM.Translate(float64(width), float64(width))
- image.DrawImage(sourceImage, op)
- return image
-}