diff options
author | ubq323 <ubq323@ubq323.website> | 2025-06-04 15:34:04 +0100 |
---|---|---|
committer | ubq323 <ubq323@ubq323.website> | 2025-06-04 15:34:04 +0100 |
commit | 84d7a078816cc1d7f62ff22f719e4769cf1312b1 (patch) | |
tree | 6b5c9812bac0a43e4af1f578ca97b26ce9b1235b | |
parent | fcac5d8f81dc2f0a3a197e7563baa893b562c00d (diff) |
rect: remove vals()
-rw-r--r-- | rect.lua | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -50,12 +50,8 @@ function Rect.has(self, point) and self.y0 <= point.y and point.y <= self.y1 end -function Rect.vals(self) - return self.x0, self.y0, self.w, self.h -end - function Rect.draw(self, mode) - love.graphics.rectangle(mode or 'line', self:vals()) + love.graphics.rectangle(mode or 'line', self.x0, self.y0, self.w, self.h) end function Rect.__tostring(self) |