268
votes
Draw the national flag of Iceland
Python 3, 190 172 171 169 167 160 159 147 143 bytes
Using PIL version 1.1.7 which has a deprecated but not removed offset method.
...
139
votes
Paint Starry Night, objectively, in 1kB of code
Pyth (no built-in compression), score 4695.07 4656.03 4444.82
Pyth’s only image-related functionality is a builtin to write a matrix of RGB triples as an image file. So the crazy idea here is to ...
124
votes
Paint Starry Night, objectively, in 1kB of code
Mathematica, score 14125.71333
"a.png"~Export~ConstantImage[{28,34,41}/95,{386,320}]
Saves this image:
to a.png.
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:
...
120
votes
Draw the national flag of Iceland
x86 real-mode machine code for DOS COM, 69 65 63 62 bytes
The code is meant to be executed as a DOS COM executable.
Special thanks
meden, saved four bytes.
meden, saved two bytes and removed the ...
111
votes
Paint Starry Night, objectively, in 1kB of code
Java, 7399.80678201
This reminded me of a project I had in my numerical computations class a few semesters back, which was to draw a silhouette of Mount Everest using polynomial interpolation. That ...
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 ...
105
votes
94
votes
Paint Starry Night, objectively, in 1kB of code
Python3.4+, 4697.26
I used the same method as in my ImageMagick answer, but with the following parameters:
...
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:
...
90
votes
Accepted
88
votes
84
votes
Draw the Ukrainian Flag
HTML+SVG, 39 bytes
<svg viewbox=12.5,-8.9,1.5,1><text>😴
The question forbids zooming in on the Ukraine flag... but not the flag of Sweden! Apparently ...
77
votes
Draw the national flag of France
Pure Bash (on OSX), 84
The default OSX terminal supports full colour emojis. Not sure if this counts as text or graphical output.
...
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 ...
74
votes
Paint Starry Night, objectively, in 1kB of code
Java, 8748.95
Another approach:
I created a class that computes a Voronoi Diagram from a given set of points. This set of points is used as the parameter set that serves as the input for the Apache ...
68
votes
Draw/plot a heart graph
TI-80 BASIC, 45 43 41 39 bytes
LBL 1
RAND4-2->X
RAND4-2
IF (X²+ANS²-1)³<X²ANS³
PT-ON(X,ANS
GOTO 1
This took a while, and my battery is low so I didn't want ...
58
votes
Appease Your Google Overlords: Draw the "G" Logo
Mathematica, 229 226 225 224 221 206 169 bytes
Thanks @MartinEnder for 1 byte, @ChipHurst for 37 bytes!
...
57
votes
54
votes
Draw the national flag of France
Desmos, 30 12 bytes
3x>10
3x<-10
Try it online.
I'm not entirely sure if this is valid, please let me know if there are any issues.
49
votes
Paint Starry Night, objectively, in 1kB of code
Python 2, 4749.88
1018 bytes
Everybody has probably forgotten about this problem by now, except me....
This problem interested me far too much, especially as it quickly became apparent that approaches ...
49
votes
47
votes
Draw/plot a heart graph
Perl, 86 bytes
$y=1-$_/25,say+map$y**3*($_*=$_/1e3)-($_+$y**2-1)**3>0?$|--?v60:3:$",-40..40for-6..50
Run with perl -E.
...
47
votes
Accepted
Draw the flag of Bangladesh
Wolfram Language (Mathematica), 23 bytes
¯\__(ツ)_/¯ of course there is a built in for this...
"BD"~CountryData~"Flag"
but you can also get ...
46
votes
45
votes
Accepted
Sprocket Science: Animating a Chain Drive System
JavaScript (ES6), 2557 1915 1897 1681 bytes
This isn't super-duper golfed really; it's minified - partly by hand - but that's nothing special. It could no doubt be shorter if I'd golfed it more ...
45
votes
Patch the Image
Matlab
This is a simple interpolation approach. The idea is first mirroring what is on each side of the patch. Then those mirror image pixels are interpolated by how close they are to the ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
graphical-output × 346code-golf × 264
popularity-contest × 58
image-processing × 55
kolmogorov-complexity × 44
geometry × 44
ascii-art × 33
fractal × 25
code-challenge × 21
math × 20
animation × 16
random × 11
color × 9
number × 8
tiling × 7
game × 6
compression × 5
cellular-automata × 5
trigonometry × 5
game-of-life × 5
sequence × 4
integer × 4
grid × 4
path-finding × 4
hello-world × 4