264 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. ...
user avatar
119 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 ...
user avatar
112 votes
Accepted

Draw an Image as a Voronoi Map

Python + scipy + scikit-image, weighted Poisson disc sampling My solution is rather complex. I do some preprocessing on the image to remove noise and get a mapping how 'interesting' each point is (...
user avatar
  • 38.8k
111 votes

The Crow vs The Taxicab

Taxi, 7394 3773 bytes ...
user avatar
  • 13.5k
88 votes
Accepted

Implement the Game of Life on Anything but a Regular Grid

Penrose rhombii in Python, +97 points I chose a penrose tiling composed of two different shaped rhombuses, meeting 3-8 per vertex. This penrose tiling is proven aperiodic elsewhere. The simulation is ...
user avatar
  • 5,988
75 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. ...
user avatar
65 votes

Draw an Image as a Voronoi Map

C++ My approach is quite slow, but I'm very happy with quality of the results that it gives, particularly with respect to preserving edges. For example, here's Yoshi and the Cornell Box with just ...
user avatar
  • 1,301
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! ...
user avatar
  • 13.6k
57 votes

Triangular Lattice Points close to the Origin

Python 2, 43 bytes f=lambda n,a=1:n*n<a/3or n*n/a*6-f(n,a+a%3) Try it online! This is black magic. Offering 250 rep for a written-up proof. See Lynn's ...
user avatar
  • 138k
56 votes

Draw an Image as a Voronoi Map

IDL, adaptive refinement This method is inspired by Adaptive Mesh Refinement from astronomical simulations, and also Subdivision surface. This is the kind of task that IDL prides itself on, which you'...
user avatar
  • 1,814
56 votes

Draw the national flag of Iceland

C, 194 191 183 Bytes ...
user avatar
56 votes

Evaluate the aspect ratio of a triangle

Jelly, 7 bytes SH_÷@HP Try it online! Explanation Let’s read this chain: The implicit argument is a list [a, b, c]. First ...
user avatar
  • 66.1k
53 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.
user avatar
51 votes

Implement the Game of Life on Anything but a Regular Grid

C++ w/ OpenGL (+17) So I tried 3-Isohedral convex pentagon grid. Works for me ;) Standard game of life rules apply, except the grid is not infinite - there are border cells outside the image. 30% of ...
user avatar
  • 1,625
47 votes

Draw an Image as a Voronoi Map

Python 3 + PIL + SciPy, Fuzzy k-means ...
user avatar
  • 61k
45 votes

Draw the South Korean flag

Python + Pycairo, 371 370 366 bytes ...
user avatar
  • 7,587
45 votes

Area of a Self-Intersecting Polygon

Python 2, 323 319 bytes ...
user avatar
  • 7,587
45 votes

Appease Your Google Overlords: Draw the "G" Logo

C (Windows), 311 bytes ...
user avatar
45 votes

Construct a pentagon avoiding compass use

2 circles, 13 lines, 17 points Try it on GeoGebra Let circle(A, B) intersect circle(B, A) at C and D. Let AB intersect circle(A, B) again at E. Let AB intersect circle(B, A) again at F. Let AD ...
user avatar
43 votes

Draw the national flag of France

HTML / SVG, 76 bytes 87 88 121 122 149 Saved 27 bytes thanks to @insertusernamehere Saves 9 bytes thanks to @Joey Saved 1 bytes thanks to @sanchies Saves 1 bytes thanks to @Neil ...
user avatar
  • 28.4k
43 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 ...
user avatar
  • 1,021
41 votes

Implement the Game of Life on Anything but a Regular Grid

Go, ? points So rather than pin myself down to a particular tiling, I wrote a program that takes a gif or png of a tiling and runs life on it. The gif/png must use a single color for all the tiles. ...
user avatar
41 votes

Sprocket Science: Animating a Chain Drive System

C# 3566 bytes Not golfed at all, but works (I think) Ungolfed in edit history. Uses Magick.NET to render gif. ...
user avatar
  • 19.7k
41 votes

Random point on a sphere

Wolfram Language (Mathematica), 20 bytes RandomPoint@Sphere[] Try it online! Does exactly what it says on the tin.
user avatar
  • 16.3k
39 votes

Draw the Ionising Radiation Hazard Symbol

BBC BASIC, 200 bytes ...
user avatar
  • 22.8k
38 votes
Accepted

Draw the national flag of France

CJam, 23 22 bytes 00000000: 27 9b 22 5c 22 25 1f 22 66 7b 69 27 6d 32 37 2a '."\"%."f{i'm27* 00000010: 7d 4e 5d 32 36 2a }N]26* ...
user avatar
  • 207k
38 votes

Is my triangle right?

Jelly, 5 bytes ²µSHe Try it online! Technical note: Bytes are counted in Jelly codepage. Explanation: ...
user avatar
  • 16.9k
36 votes

Tile the plane with this modified circle

POV-Ray, 199 163 ...
user avatar
  • 2,861
35 votes

Appease Your Google Overlords: Draw the "G" Logo

Python 2, 244 220 bytes using Martin Rosenau's transformation on the [-1,1]^2 plane and minor golfing like removing 0. or brackets ...
user avatar
  • 4,333

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