diff options
| author | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-09-19 06:47:50 +0200 |
|---|---|---|
| committer | Martin Kagamino Lehoux <martin@lehoux.net> | 2023-09-19 06:48:50 +0200 |
| commit | 0305cd01f8438d2c23033958120e61dff4fd2b1b (patch) | |
| tree | 41beb17a71d881f162aaddcd9d721cd39aac6df3 /image.go | |
| parent | dc17461910194815ff9b329f386f17d6218a5853 (diff) | |
fix: Display selection rect above all entities
Diffstat (limited to 'image.go')
| -rw-r--r-- | image.go | 8 |
1 files changed, 0 insertions, 8 deletions
@@ -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 -} |
