Hot answers tagged

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: ...
tuskiomi's user avatar
  • 3,831
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 ...
betseg's user avatar
  • 8,753
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: ...
BradC's user avatar
  • 6,767
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 ...
Bassdrop Cumberwubwubwub's user avatar
49 votes

GO OUT AND VOTE

HTML, 52 bytes I <c>V<e>o<c>t<e>e<c>d<style>*{color:red}c{color:0ff
noɥʇʎԀʎzɐɹƆ's user avatar
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 ...
Fatalize's user avatar
  • 38.4k
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 ...
Neil's user avatar
  • 166k
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 ...
applejacks01's user avatar
  • 1,057
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 ...
Bassdrop Cumberwubwubwub's user avatar
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) ...
Billywob's user avatar
  • 3,493
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. ...
Geobits's user avatar
  • 19.7k
22 votes

The next colour

JavaScript, 68 bytes s=>'RedOrangeYellowGreenBlueIndigoVioletRed'.match(s+'(.[a-z]*)')[1] For input "Red", this function ...
tsh's user avatar
  • 34.1k
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 ...
Una's user avatar
  • 658
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: ...
Sp3000's user avatar
  • 61.7k
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 ...
Sanchises's user avatar
  • 9,446
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: ...
Glenn Randers-Pehrson's user avatar
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 ...
MD XF's user avatar
  • 13.8k
17 votes

Find the closest HTML colour name

C# (Visual C# Interactive Compiler), 231+21=252 bytes ...
Innat3's user avatar
  • 821
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 ...
xnor's user avatar
  • 144k
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.
LegionMammal978's user avatar
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 ...
Lofty Withers's user avatar
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. ...
Magic Octopus Urn's user avatar
14 votes

Two-Coloring Overlapping Circles

Mathematica, 165 bytes ...
Greg Martin's user avatar
  • 15.4k
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. ...
Octopus's user avatar
  • 849
14 votes

Find the closest HTML colour name

Node.js, 1488 bytes Takes input as a 24-bit integer. Outputs in lower case. ...
Arnauld's user avatar
  • 189k
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 @...
AdmBorkBork's user avatar
  • 43.3k
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 ...
a spaghetto's user avatar
  • 11.2k
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... ...
tsh's user avatar
  • 34.1k
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. ...
ETHproductions's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible