mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
image: Remove image.DrawRects (#142)
This commit is contained in:
parent
e8b125df1e
commit
580effba8e
5
image.go
5
image.go
@ -116,11 +116,6 @@ func (i *Image) DrawRect(x, y, width, height int, clr color.Color) error {
|
||||
return i.DrawLines(&rectsAsLines{&rect{x, y, width, height, clr}})
|
||||
}
|
||||
|
||||
// DrawRect draws rectangles.
|
||||
func (i *Image) DrawRects(rects Rects) error {
|
||||
return i.DrawLines(&rectsAsLines{rects})
|
||||
}
|
||||
|
||||
// DrawFilledRect draws a filled rectangle.
|
||||
func (i *Image) DrawFilledRect(x, y, width, height int, clr color.Color) error {
|
||||
return i.DrawFilledRects(&rect{x, y, width, height, clr})
|
||||
|
Loading…
Reference in New Issue
Block a user