121
votes
GO OUT AND VOTE
Minecraft Chat (vanilla 1.10 client, spigot 1.10 server): 19 bytes
&4I &1V&4o&1t&4e&1d
or from the clientside:
...
107
votes
GO OUT AND VOTE
C, 82 80 78 74 54 bytes
Thanks to @WillihamTotland and @criptych for saving 2 bytes each!
f(){puts("␛[47;31mI␛[34m V␛[31mo␛[34mt␛[31me␛[34md");}
Where ...
94
votes
Accepted
Display random colored pixels
Minecraft 1.12 Redstone Command Blocks, 4,355 2,872 bytes
(Size determined by saved structure block file size.)
Here is a full YouTube overview, but I'll try to outline the code below.
Setup Routine:
...
75
votes
GO OUT AND VOTE
Google Blockly, 10 14 blocks, 28 41 35 blytes
Code
Output
Try it here
Not counting the hide turtle block because it's just aesthetics.
A blyte is a combination ...
49
votes
40
votes
GO OUT AND VOTE
LaTeX, 147 126 bytes
\documentclass{proc}\input color\begin{document}\def\z{\color{red}}\def\y{\color{blue}}\z I \y V\z o\y t\z e\y d\end{document}
Saved 21 ...
34
votes
GO OUT AND VOTE
Windows 10 Batch, 51 50 bytes
@color fc&echo I ␛[94mV␛[91mo␛[94mt␛[91me␛[94md␛[m
Where ␛ represents the ANSI Escape 0x1B character. Outputs using colour ...
33
votes
Images with all colors
C#
Wow, really cool things in this challenge. I took a stab at this at in C# and generated a 4096x4096 image in about 3 minutes (i7 CPU) using every single color via Random Walk logic.
Ok, so for ...
28
votes
GO OUT AND VOTE
JavaScript, 71 bytes
console.log('%cI %cV%co%ct%ce%cd',r='color:red',b='color:blue',r,b,r,b)
Makes use of console.log's ability ...
23
votes
GO OUT AND VOTE
R, 113 85 81 74 73 55 bytes
Edit: Saved a bunch of bytes thanks to @rturnbull and @JDL
plot(8:1,0:7*0,pc=el(strsplit("detoV I","")),co=2:1*2)
...
22
votes
GO OUT AND VOTE
LÖVE, 152 142 136 bytes
Let's show some löve for a fun little prototyping language! It's not perfect for the task of golfing (c'mon, it's LUA based), but it's easy to write.
...
22
votes
The next colour
JavaScript, 68 bytes
s=>'RedOrangeYellowGreenBlueIndigoVioletRed'.match(s+'(.[a-z]*)')[1]
For input "Red", this function ...
20
votes
Display random colored pixels
sh + ffmpeg, 52 bytes
ffplay -f rawvideo -s cif -pix_fmt rgb24 /dev/random
Does ffmpeg count as an esolang? :D
Sadly the pix_fmt is required, as ffmpeg defaults ...
19
votes
GO OUT AND VOTE
Hot Soup Processor, 48 bytes
color 255
mes"I o e
pos,0
color,,-1
mes" V t d
The ungolfed version is:
...
18
votes
GO OUT AND VOTE
MATLAB, 74 bytes
We create a white 50x50 (one column for each state) background using imshow of an array of ones. We then ...
18
votes
GO OUT AND VOTE
ImageMagick, 102 bytes
magick xc:[x60] -fill red -draw 'text 5,30 "I o e"' -fill blue -draw 'text 15,30 "V t d"' x:
Ungolfed:
...
18
votes
Display random colored pixels
C on POSIX, 98 96 95 92 bytes
-3 thanks to Tas
#define r rand()
f(){for(srand(time(0));printf("\e[%d;%dH\e[%d;4%dm ",r%40,r%40,r%2,r%8););}
This chooses between ...
17
votes
16
votes
RGB to hexadecimal
Python 3, 22 bytes
("#"+"%02x"*3).__mod__
Try it online!
Takes inputs as a tuple. The idea is to avoid a ...
15
votes
GO OUT AND VOTE
Mathematica (REPL image output), 65 49 bytes
Overlay@{"I o e"~Style~Red," V t d"~Style~Blue}
Graphical REPL expression.
15
votes
GO OUT AND VOTE
Bash, 35 bytes
My script looks like this
echo "^[[47;31mI hope^[[34md^H^H^Ht^H^H^Hv"
xxd of script file:
0000000: 6563 686f 2022 1b5b 3437 3b33 316d 4920 ...
14
votes
GO OUT AND VOTE
Java, 322 319 318 309 304 229 217 bytes
-9 Bytes thanks to kevin.
-75 Bytes thanks to Angzuril, nice callout on the old awt classes, always forget those exist.
-12 Bytes thanks to user902383.
...
14
votes
14
votes
Display random colored pixels
JS+HTML 162+32 (194) 124+13 (137) bytes
Thanks to Luke and other commenters for saving me lots of bytes.
...
14
votes
Find the closest HTML colour name
Node.js, 1488 bytes
Takes input as a 24-bit integer. Outputs in lower case.
...
13
votes
GO OUT AND VOTE
PowerShell v2+, 71 59 57 55 bytes
"I Voted"[0..6]|%{Write-Host -b w -n -f (9,12)[$_%2]$_}
Saved two bytes thanks to @flashbang ... saved two more thanks to @...
13
votes
GO OUT AND VOTE
Bubblegum, 28 bytes
0000000: 938e 3636 ccf5 0492 e6b9 0a40 d224 370c ..66.......@.$7.
0000010: 2c92 0f66 9780 d9a9 6076 0a00 ,..f....`v..
Does not ...
13
votes
Better Hex Color Codes for Your Internet
JavaScript, 86 82 77 bytes
x=>([s,a=0,b=a,c,d,e,f]=x,f?x:e?x+e:[s,a,d||a,c?b:a,d||b,v=c||b,d||v].join``)
just find out that remove recursive save 4 bytes...
...
12
votes
Extract an RGB channel of an image
JavaScript (ES6), 29 bytes
a=>n=>a.map(b=>b.map(c=>c&n))
Input is a 2D array of 24-bit integers (e.g. ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
color × 35code-golf × 33
graphical-output × 9
string × 5
image-processing × 5
hexadecimal × 5
conversion × 4
kolmogorov-complexity × 3
math × 2
popularity-contest × 2
random × 2
number × 1
arithmetic × 1
integer × 1
geometry × 1
combinatorics × 1
graph-theory × 1
base-conversion × 1
javascript × 1