mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
9 lines
308 B
Ruby
9 lines
308 B
Ruby
class Bitmap
|
|
def outline_rect(x, y, width, height, color, thickness = 1)
|
|
fill_rect(x, y, width, thickness, color)
|
|
fill_rect(x, y, thickness, height, color)
|
|
fill_rect(x, y + height - thickness, width, thickness, color)
|
|
fill_rect(x + width - thickness, y, thickness, height, color)
|
|
end
|
|
end
|