Method: L8::Util.to_two_byte_color
- Defined in:
- lib/l8/util.rb
.to_two_byte_color(r, g, b) ⇒ Object
7 8 9 |
# File 'lib/l8/util.rb', line 7 def self.to_two_byte_color(r, g, b) [(0.to_s(16) + b.to_s(16)).hex] + [(g.to_s(16) + r.to_s(16)).hex] end |