Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 31785

This challenge involves drawing pictures on a screen or generating image files. For pure ASCII art contests, use [ascii-art] instead. If participants can choose between graphics and ASCII art, use both tags. For images as input, use [image-processing].

13 votes

Generate Realistic Maps

This challenge is surprisingly difficult. I wrote a map generator in Python using Pygame. The program grows the color area into free space, and results in an image that might look like a map (if you s …
Logic Knight's user avatar
  • 6,792
9 votes

Short drawing programme

Python 2.7 - 339 197 324 * (0.7 * 0.8 * 0.9) = 163 Edit: I discovered pygame can draw lines with variable width so here is an update. An experiment in using the PyGame modules. A simple paint program …
Logic Knight's user avatar
  • 6,792
17 votes

Fifty Shades of Grey

ipython 2, 54 bytes The best I could do was with an ipython program. Starting ipython with ipython -pylab and executing this program will show a graph with 50 shades of grey in 50 squares: t=arange( …
Logic Knight's user avatar
  • 6,792
36 votes
9 answers
8k views

Program a Racing Car

CONGRATULATIONS to @kuroineko. Wins the bounty for excellent speed (672 moves) on the Gauntlet track. LEADER:* Nimi scoring a lightweight 2129. Other entries are larger but showing some serious speed. …
Logic Knight's user avatar
  • 6,792
35 votes
4 answers
2k views

Image Battle of Colours

CONGRATULATIONS to @kuroineko for the best entry and winning the 200 bounty from @TheBestOne (excellent sportsmanship!). Write a program to colour as much of an image as possible before opposition …
Logic Knight's user avatar
  • 6,792
1 vote

Program a Racing Car

Sunday Driver, Python 2, 3242 Minified code = 2382 bytes Performance: city=86 obstacles=46 racetrack=188 gauntlet=1092 Here is my proof-of-concept program that was to demonstrate that a solution wa …
Logic Knight's user avatar
  • 6,792
24 votes

Paint by Numbers (using programming, not numbers)

Python 2 and PIL: Psychedelic Worlds I have used a simple algorithm to flood fill each white-ish area with a color from a cycling palette. The result is very colorful, but not very lifelike. Note th …
Logic Knight's user avatar
  • 6,792
0 votes

Reverse Bayer Filter of an image

Python 2, 256 275 bytes First I simplified the original code: from PIL import Image from numpy import* import sys # Open image and put it in a numpy array srcArray = array(Image.open(sys.argv[1]), …
Logic Knight's user avatar
  • 6,792
21 votes

Patch the Image

Python 2 and PIL This program blends copies of regions North, South, East, and West to create replacement pixels that use colours, textures, and shading from the local image region. The example output …
Logic Knight's user avatar
  • 6,792
8 votes
7 answers
947 views

Writing code for three tasks

When you run your program first, it should print an integer sequence. The second run should print the 'Mary had a little lamb' song. The third run should produce an ASCII image file. Scoring Your s …
Logic Knight's user avatar
  • 6,792