alpha
Login
or
Join now
yemou.pink
/
scripts
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
This repository has no description
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix hex to rgb conversion
author
yemou
date
5 years ago
(Oct 5, 2020, 1:11 AM UTC)
commit
8a580e2a
8a580e2a5142aba026bad2917d329fa9d8685bfb
parent
e1ba1ef8
e1ba1ef830940748986f6ad839e284044f4984f8
+1
-1
1 changed file
Expand all
Collapse all
Unified
Split
thm
+1
-1
thm
Reviewed
···
12
12
hex_r=${hex%????}
13
13
hex_g=${hex#??}
14
14
hex_g=${hex_g%??}
15
15
-
hex_b=${hex%????}
15
15
+
hex_b=${hex#????}
16
16
printf '%d,%d,%d' "0x$hex_r" "0x$hex_g" "0x$hex_b"
17
17
}
18
18