mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-08 13:44:59 +00:00
Initial proof of concept commit
This commit is contained in:
8
Data/Scripts/900_New utilities/001 utilities.rb
Normal file
8
Data/Scripts/900_New utilities/001 utilities.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
||||
Reference in New Issue
Block a user