This challenge involves drawing pictures on a screen or generating image files. For pure ASCII art contests, use [tag:ascii-art] instead. If participants can choose between graphics and ASCII art, use both tags. For images as input, use [tag:image-processing].
14
votes
11answers
2k views
Play the Chaos Game
The Chaos Game is a simple method to generate fractals. Given a starting point, a length ratio r and a set of 2D points, repeatedly do the following:
From your set of points, pick one at random ...
11
votes
4answers
2k views
Fake the forecast
The new weather predicting supercomputer has arrived, and it doesn't work.
In the meantime your boss wants you to buy the technicians some time by faking the daily wind maps.
Your task is to draw a ...
40
votes
10answers
7k views
Little Chandler is sad. Draw him a cloud to cheer him up
Little Chandler is sad. Draw him a cloud to cheer him up.
Note: Drawing a cloud won't actually cheer him up.
A circle can be defined as a 3-tuple (x,y,r) where x is the x position of the circle on a ...
2
votes
0answers
266 views
The World in the Future [on hold]
In the future, the world will change, there's no doubt about it. For that reason, you have to produce a realistic map of the world n years in the future.
The number n should be the number of years in ...
25
votes
1answer
801 views
Animation of Code Golf
When I see code-golf entries that knock a few characters off, whittling down the code, I go look at the edit history for a side-by-side diff. See and learn :)
This challenge is to make a program ...
7
votes
6answers
686 views
Curve Stitching
Curve stitching is the process of "stitching" together multiple straight lines in order to create a curve, like so:
For an explanation of curve stitching, visit this website.
We will be drawing ...
6
votes
3answers
305 views
Catenary Between Two Points (Hanging Chain)
This is one of several challenges left for the community by Calvin's Hobbies.
The curve that an idealised hanging rope or chain makes is a catenary.
Image by Bin im Garten, via Wikimedia Commons. ...
8
votes
2answers
366 views
Generate the outline of an island from a seed [closed]
The challenge is to draw the outline of an 'island', generated using a seed as input.
Input (seed): string of 6 characters (exactly) allowing only lowercase letters (i.e. abcdefghijklmnopqrstuvwxyz) ...
5
votes
1answer
273 views
Produce a Simple Station Model
A station model is a diagram for recording the weather at a certain place and time.
Challenge
You must write the shortest code possible to graphically output a simplified (explained later) station ...
5
votes
5answers
329 views
Draw centered polygonal numbers
A centered polygonal number is able to be put into an arrangement of multiple concentric polygons, each with a side length of one more than the inner one. For example (image from linked page),
the ...
18
votes
3answers
605 views
Life can be colorful!
Each cell in a life-like cellular automaton only needs one bit to represent it since it can only be alive or dead. That means there are only two colors; pretty boring.
Normal images have 24 bits per ...
20
votes
3answers
978 views
Drawing Epicyclogons
An epicycloid is the curve a point on a circle makes as it rolls around another circle. A cyclogon is the shape a point on a regular polygon makes as it rolls across a plane. An epicyclogon is the ...
3
votes
1answer
389 views
Output an Animated Trigonometry Circle
I want you to write a program that outputs a trigonometry circle like the one below. I also want you to animate this circle, having the sine line move along the circumference with the other lines move ...
41
votes
6answers
3k views
Redraw an image with just one closed curve
Inspired by vi.sualize.us
Goal
The input is a grayscale image and the output is a black and white image. The output image consists of just one closed curve (loop) that is not allowed to intersect ...
2
votes
1answer
636 views
Create a program that output's itself as a series of punch cards
Create a program that output's itself as a series of punch cards:
Rules:
You can use any programming language.
The output (i.e. punch cards) can be ASCII art.
Each line of code must be able to be ...
20
votes
2answers
817 views
Reproduce an image using lines
Write a program that takes in a true-color RGB image I, the maximum number of lines to draw L, and the minimum m and maximum M length of each line. Output an image O that looks as much as possible ...
44
votes
8answers
4k views
Draw random black-and-white forest
Your task is to write program which will draw 800x600 black-and-white image with something resembling a forest.
Like this (it is dithered photo):
Rules
You are disallowed to use any existing ...
8
votes
0answers
322 views
Create a popular penrose tiling [closed]
The recent question about Wang tiles has led me to think that creating Penrose tilings might be an interesting popularity contest.
Background
Wang tiles are tiles that can tile the plane, but only ...
1
vote
10answers
960 views
Crop an image to a square
In this challenge, you will take an input image and crop it to make a square, leaving only the central part of the input image.
The answers must work with landscape, portrait, or square input images. ...
25
votes
10answers
4k views
Golf a Venn Diagram generator
Golf a Venn Diagram generator
In order to properly celebrate John Venn's 180th birthday, today your task will be creating a program that outputs a Venn Diagram!
Input:
A positive integer N that ...
18
votes
2answers
2k views
Fill the Screen with Wang Tiles
It has been proven that the following 13 square Wang tiles always tile the plane aperiodically. This means that when the squares are arranged in a grid with all neighboring sides the same color, a ...
274
votes
56answers
68k views
Tweetable Mathematical Art
Integer math can generate amazing patterns when laid out over a grid. Even the most basic functions can yield stunningly elaborate designs!
Your challenge
Write 3 Tweetable (meaning 140 characters ...
1
vote
2answers
211 views
Collatz Graph Plotting
Write a program that outputs a graph of the collatz sequence any way you want (ASCII Image Video etc). You have to implement it that way that you can adjust the size of the graph by either the maximum ...
7
votes
1answer
327 views
The Mouse's Tale
Write a program that outputs Lewis Carroll's poem The Mouse's Tale from Alice in Wonderland, drawn in its distinctive tail-like shape.
Plain text of the poem:
Fury said to a mouse, That he met ...
17
votes
5answers
1k views
Draw an Image with a Snake
Imagine a continuous 2-dimensional path that can only turn left, right, or go straight, cannot intersect itself, and must fill a rectangular grid such as the grid of pixels in an image. We'll call ...
64
votes
11answers
7k views
Make a circle illusion animation
Your job is to animate this circle illusion. It looks like the points rotating inside of the circle, but they are actually just moving in straight lines.
Criterias
The result has to be animated. ...
5
votes
2answers
352 views
Courier Ception
Courier Ception
The program must accept any string as input and output an pixel image that shows the input string in Courier. All the letters that contain a 'hole' (like abdegopqABDPQR etc) that is ...
25
votes
6answers
2k views
Photomosaics or: How Many Programmers Does it Take to Replace a Light Bulb?
I've compiled a mosaic of 2025 headshots from the avatars of the top Stack Overflow users.
(Click the image to view it full-size.)
Your task is to write an algorithm that will create an accurate ...
0
votes
1answer
356 views
Babylon.js - loop through a scene and apply a simple fragment shader to all of the objects
You have a library - a fully loaded 2014 Babylon.js.
You have a fragment shader - let's call it sample.fragment.fx.
You have a scene - loaded ahead of time, possibly from a .babylon JSON file.
Your ...
275
votes
35answers
48k views
American Gothic in the palette of Mona Lisa: Rearrange the pixels
You are given two true color images, the Source and the Palette. They do not necessarily have the same dimensions but it is guaranteed that their areas are the same, i.e. they have the same number of ...
7
votes
1answer
405 views
Open source optical lattice clock
A recent question showed how Mathematica could be used to make a beautiful optical lattice clock image. The image looks like this.
This challenge is to reproduce this image as closely as possible ...
10
votes
12answers
1k views
Spirograph Time!
A Spirograph is a toy that draws hypotrochoids and epitrochoids. For this challenge, we'll just focus on the hypotrochoids.
From Wikipedia:
A hypotrochoid is a roulette traced by a point ...
20
votes
45answers
5k views
Write a hello world GUI program that closes itself after three seconds
Please read the rules, and the bold areas as well.
Write a program in any language, so long as it has GUI support for a window system (cannot be text-consoles, etc., and must be a ...
7
votes
2answers
581 views
Steampunk: Clacker animation
In the highly underrated Steampunk novel The Difference Engine, the equivalent of cinema houses delivered a pixelated moving image displayed by tiles which could be flipped mechanically. The control ...
10
votes
3answers
688 views
Output a solid PNG from scratch
Input: An RGBA hex color c (ex. FFFF00FF) and an integer > 0 and < 1000 n (ex. 200).
Output: Raw bytes of a PNG file such that when the output is saved to a file and opened in an image viewer, an ...
54
votes
14answers
7k views
Draw the € sign
The goal is to output or display an image with an € (euro) sign according to the following specs (ignoring the border of the sign).
Source: http://en.wikipedia.org/wiki/File:Euro_Construction.svg
...
23
votes
4answers
3k views
May the 4th be with you!
In honor of Star Wars day, write a program to display the following text, scrolling like the Star Wars opening crawl:
It is a period of civil war. Rebel
spaceships, striking from a hidden
...
4
votes
0answers
468 views
Collatz Attack!
This challenge is based on some new findings related to the Collatz conjecture and designed somewhat in the spirit of a collaborative polymath project. Solving the full conjecture is regarded as ...
15
votes
4answers
624 views
I like Pythagorean trees
...so this is a challenge to make me a tree.
Produce a program or function called tree which takes a single integer argument, N and draws a Pythagorean Tree N levels deep, where level 0 is just the ...
9
votes
3answers
740 views
building circuit for divisibility by 3
A boolean circuit in TCS is basically a DAG consisting of And, Or, Not gates, and by what is known is "functional completeness" they can compute all possible functions. eg this is the basic principle ...
10
votes
2answers
721 views
Make a word cloud from a text
The code should take text from standard input:
The definition of insanity is quoting the same phrase again and again and not expect despair.
The output should be a PNG file containing the word ...
56
votes
8answers
6k views
Is it dark outside? Draw a sun map!
Our closest star, the sun, is quite fidgety. The times it rises and sets depend on where you are, and whether it is winter or not.
We would like to be able to deduce if the sun is shining outside ...
13
votes
2answers
642 views
What do you see in an inkspot? Rorschach generation'
So I'd like you to attempt to generate Rorschach images like the below image:
Here is a link to further inspiration.
This is a popularity contest, but I will say that colours are likely to be more ...
6
votes
1answer
526 views
Create a random 3D asteroid
Imagine you are working on a 3D adaptation of the classical video game Asteroids. Your task is to write an algorithm that can create a random 3D asteroid.
This is a popularity contest, not code golf. ...
52
votes
27answers
7k views
Mandelbrot image in every language
I always used a Mandelbrot image as the 'graphical' version of Hello World in any graphical application I got my hands on. Now it's your guys' turn.
Language must be capable of graphical output or ...
25
votes
17answers
3k views
Output an image of your source code (not-quite-a-Quine)
Code golf: Print an image of the source code.
Requirements
Must output the image of the source code itself, not a version stored elsewhere and retrieved at run time.
Code must be legible enough ...
8
votes
15answers
1k views
Approximate a Bell Curve
Create a program to display some approximation of a bell curve. You are free to use whatever method you wish for generating the data, but the data must be displayed vertically, as in oriented like so:
...
16
votes
6answers
1k views
Paralell projected voxel terrain generator
Your job is to generate a heightmap and show it as a paralell projected, voxel landscape. The rules are the following:
The (heightmap of the) landscape has to be randomly generated
You also have to ...
230
votes
40answers
59k views
Images with all colors
Similar to the images on allrgb.com, Make images where each pixel is a unique color (no color is used twice and no color is missing).
Give a program that generates such an image, along with a ...
32
votes
7answers
2k views
Animated drawing of a Bézier curve
Your job is to draw a Bézier curve given it's control points. The only criteria is that you actually have to show how to draw the curve from the initial control point to the last one.
Criterias
The ...