fjord/main.rb

6 lines
87 B
Ruby
Raw Normal View History

2024-03-17 23:28:50 +09:00
def to_hex(r, g, b)
[r, g, b].sum('#') do |n|
n.to_s(16).rjust(2, '0')
2024-03-16 22:40:05 +09:00
end
end