Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Challenge involving processing colors. It can be either for graphical output or manipulation on color codes.
3
votes
RGB to hexadecimal
Python, 38 23 bytes
-1 byte thanks to @py3_and_c_programmer
lambda*x:"#"+"%02x"*3%x
Attempt This Online!
3
votes
RGB to hexadecimal
><> (Fish), 102 bytes
Since this challenge is super easy I wanted to try some esolangs.
Takes input as raw byte values.
"#"o03i:&82*,01.
:9)?v68*+o.
v+"W"<;
o14&82*%01.
\.05i:&82*,01.
06&82*%01.
07 …
7
votes
RGB to hexadecimal
C (GCC), 39 bytes
m(r,g,b){printf("#%06x",r<<16|g<<8|b);}
Attempt This Online!
I could to this all day in every language