This website requires JavaScript.
Explore
Help
Sign in
riq0h
/
fjord
Watch
1
Star
0
Fork
You've already forked fjord
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
de6463a825
fjord
/
main.rb
6 lines
87 B
Ruby
Raw
Normal View
History
Unescape
Escape
3/17
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'
)
3/16
2024-03-16 22:40:05 +09:00
end
end
Reference in a new issue
Copy permalink