diff options
Diffstat (limited to 'mrblib/color.rb')
| -rw-r--r-- | mrblib/color.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mrblib/color.rb b/mrblib/color.rb index 2625f34..c936f0d 100644 --- a/mrblib/color.rb +++ b/mrblib/color.rb @@ -58,6 +58,13 @@ module Raylib end self.send(result) end + + def clone + Raylib::Color.new(r: self.r, + g: self.g, + b: self.b, + a: self.a) + end end # Hash of all web colors, RayWhite, and Clear |
