aboutsummaryrefslogtreecommitdiff
path: root/image.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2023-09-19 06:47:50 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2023-09-19 06:48:50 +0200
commit0305cd01f8438d2c23033958120e61dff4fd2b1b (patch)
tree41beb17a71d881f162aaddcd9d721cd39aac6df3 /image.go
parentdc17461910194815ff9b329f386f17d6218a5853 (diff)
fix: Display selection rect above all entities
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
-}