This challenge involves drawing pictures on a screen or generating image files. For ASCII art output, use [tag:ascii-art]. For images as input, use [tag:image-processing].

learn more… | top users | synonyms

14
votes
4answers
558 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 ...
5
votes
2answers
275 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 ...
23
votes
5answers
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
221 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 ...
257
votes
34answers
45k 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
359 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 ...
9
votes
12answers
938 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 ...
19
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
504 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
597 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
13answers
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 ...
3
votes
0answers
410 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
566 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 ...
8
votes
3answers
645 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
671 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 ...
54
votes
6answers
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
560 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
454 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. ...
50
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 ...
211
votes
39answers
49k 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 ...
19
votes
8answers
2k views

Cubify This! A lesson in grayscale… er… color… er… whatever

Being a big fan of the Rubik's cube and of cool art, I've been working on combining the two together to do some really cool stuff. Basically solving miniature Rubik's cubes to form rudimentary pixels ...
0
votes
1answer
179 views

Plot gif of 3 dimensional heart in R [closed]

inspired by this blog: http://alstatr.blogspot.co.uk/2014/02/r-animating-2d-and-3d-plots.html I made a 2D gif of a heart with: library(animation) saveGIF({ for(i in 1:150){ dat<- ...
6
votes
1answer
358 views

Graphical, networked, two-(human)-player Tic-Tac-Toe

Create a Tic-Tac-Toe game that allows two human players to play against each other using two networked devices. Requirements: Network play. Program must let both players know whose turn it is. ...
15
votes
1answer
624 views

QR Codes… and all that Jazz!

This is going to be relatively challenging code-golf challenge. Input: Any URL, must have the protocol attached, e.g. http://codegolf.stackexchange.com (which will be our test case) Output: A ...
44
votes
41answers
16k views

Make a PNG image with “Hello World!” with programming APIs, in the shortest code possible

So, I want you to make a PNG image that says "Hello world!" and nothing else on a distinguishable background using only an image making API (eg ImageMagick) and return the image. Fewest characters ...
12
votes
11answers
979 views

Render a version of the BBC Micro owl logo

http://en.wikipedia.org/wiki/File:BBC_owl.svg Can you render out a version of the BBC Micro Owl logo as per above from code? Rules: You can use any programming language you like. Output can be ...
12
votes
13answers
2k views

Generate a 1920 x 1080 graphic with 2,073,600 unique colours

Challenge: Write a program that outputs a graphic file 1920 pixels wide by 1080 pixels high. Every one of the 2,073,600 pixels within the graphic must be a unique colour and no colour values should ...
12
votes
10answers
1k views

stupid restrictions and desert

So, you were sitting at your desk, golfing a program to calculate the first 20 digits of pi, and along comes your boss and throws your apple IIe out the window. You are now working on a new project ...
1
vote
5answers
709 views

Lua: Render a chess board in smallest code

I'm creating a simple challenge here as a first test of the community's reactions. Please let me know if this challenge is the kind of thing you guys like or what I can improve... :) The task is ...
10
votes
3answers
632 views

Let's simulate a random snowflake

I saw this question on http://mathematica.stackexchange.com/ and I think it's pretty cool. Let's make the snowflake with other programming languages. This is a quote from the original question: ...
9
votes
17answers
888 views

Histogram generation

Write the shortest program that generates a histogram (a graphical representation of the distribution of data). Rules: Must generate a histogram based on the character length of the words ...
1
vote
13answers
659 views

Generate a pentagram star

Your challenge is generate a pentagram like below, the star don't need filled. Shortest code wins.
19
votes
47answers
3k views

Hello World window

Create a window that says hello world inside and nothing else. You can not have any ok or cancel buttons inside. It must be just a plain window that says hello world. I do not care about the contents ...
10
votes
3answers
434 views

Recreation of Piet Mondrian Composition

Good Afternoon, Your goal is to, in the least amount of source code bytes, recreate any of Piet Mondrian's 'Composition' paintings (for instance, Composition 10) The recreation can either use the ...
38
votes
9answers
3k views

xkcd challenge: “Percentage of the screen that is [x] color”

So I think we've all probably seen this xkcd comic: : This might either be too general or too difficult, I'm not sure. But the challenge is to create a program in any language that creates a window ...
2
votes
9answers
698 views

Display Scrolling Waves

The challenge is to display and scroll a sine waveform in the least number of characters. Restrictions: Total height of wave must be at least seven units (characters, pixels, etc). The generated ...
5
votes
3answers
803 views

ASCII-visualize a graph

Your mission, should you choose to accept it, is to input a series of point pairs that form a graph, like this: A,B C,A B,A A,D A,E F,G C,G You must then output an ASCII visualization of the ...
7
votes
4answers
986 views

Breakout in half an hour

When I was a young teen I had a very boastful friend who claimed he could code up breakout (http://en.wikipedia.org/wiki/Breakout_(video_game)) in half an hour. Half an hour later he had done a great ...
4
votes
6answers
709 views

Cropping an image succintly

I am constantly frustrated by how complicated it is to write graphical programs that would have been only a few lines of code 20+ years ago. Since the invention of the mouse this has become even ...
15
votes
5answers
2k views

“Sorry, young man, but it's Turtles all the way down!”

Execute a Lindenmayer System A Lindenmayer System (or L-system) is related to Thue and Post systems, and is used in botanical modeling and fractal generation. An L-system is described by ...
8
votes
6answers
2k views

Generating PBM bitmap files from ASCII text

The PBM (Portable BitMap) format is a very simple ASCII black and white bitmap format. Here's an example for the letter 'J' (copy-pasted from the wikipedia link): P1 # This is an example bitmap of ...
32
votes
13answers
3k views

Generate the Stack Overflow logo

The challenge is to generate an image similar to the StackOverflow logo: The output must contain: Image size 64*64 or greater A gray |__| shaped base A curved segmented stack coming up from the ...
11
votes
2answers
2k views

Generate Newton fractals

You all know the Newton method to approximate the roots of a function, don't you? My goal in this task is to introduce you into an interesting aspect of this algorithm. Newton's algorithm converges ...
11
votes
4answers
687 views

Help Mr Jones to enjoy his bicycle round-trip

Mr Jones wants to do a round-trip on his bicycle. He wants to visit several cities in arbitrary order, but his route must not cross it self, since he hates to be at the same place twice in his ...
7
votes
8answers
1k views

Output a playable crossword grid

Write a program to produce a file containing a crossword grid that the user can print out and work the puzzle on. Input A filename representing a crossword grid file and optionally a second ...