P
pamelafluente
Hi
what is the smartest function that maps the char on the left to
the char on the right (I want to complement an hexadecimal string,
like making a negative color).
0 -> f
1 -> e
2 -> d
3 -> c
4 -> b
5 -> a
6 -> 9
7 -> 8
8 -> 7
9 -> 6
a or A -> 5
b or B -> 4
c or C -> 3
d or D -> 2
e or E -> 1
f or F -> 0
If there is something able to map in one shot a whole string
to its "complement" would be even better.
-Pam
what is the smartest function that maps the char on the left to
the char on the right (I want to complement an hexadecimal string,
like making a negative color).
0 -> f
1 -> e
2 -> d
3 -> c
4 -> b
5 -> a
6 -> 9
7 -> 8
8 -> 7
9 -> 6
a or A -> 5
b or B -> 4
c or C -> 3
d or D -> 2
e or E -> 1
f or F -> 0
If there is something able to map in one shot a whole string
to its "complement" would be even better.
-Pam