mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 20:18:59 +01:00
image: Remove image.DrawRect (#142)
This commit is contained in:
parent
85279e8422
commit
b5ed0e3d6d
5
image.go
5
image.go
@ -111,11 +111,6 @@ func (i *Image) DrawLines(lines Lines) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
// DrawRect draws a rectangle.
|
||||
func (i *Image) DrawRect(x, y, width, height int, clr color.Color) error {
|
||||
return i.DrawLines(&rectsAsLines{&rect{x, y, width, height, clr}})
|
||||
}
|
||||
|
||||
// DrawFilledRects draws filled rectangles on the image.
|
||||
func (i *Image) DrawFilledRects(rects Rects) (err error) {
|
||||
i.pixels = nil
|
||||
|
Loading…
Reference in New Issue
Block a user