Skip to main content

Questions tagged [graphical-output]

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].

Filter by
Sorted by
Tagged with
21 votes
13 answers
1k views

Background In 1796, 18-year-old Carl Friedrich Gauss proved that a regular heptadecagon can be constructed with compass and straightedge — the first such discovery in over 2,000 years. The stonemason ...
Jan Popelka's user avatar
19 votes
12 answers
2k views

Recently, I've been looking more and more into retrogaming programming, and I saw this nice example from an old GBDK wiki (A tool to make Gameboy games with C, replaced by GBDK-2020): This example ...
Weird Glyphs's user avatar
9 votes
6 answers
963 views

A bowline is a knot commonly used to tie the end of a rope around something. Your task is to draw one. The image you generate must contain a topologically correct bowline knot. It must be drawn in ...
Steve Bennett's user avatar
14 votes
3 answers
400 views

If you have ever consumed liquid from a shallow cup in sunlight, you may have noticed a shape like the following at the bottom: You might notice a nephroid shaped bright outline, a brighter area on ...
mousetail's user avatar
  • 14.4k
27 votes
24 answers
5k views

The flag of Greenland consists of two red sections and two white sections. I'll provide a diagram below, but also give a textual description. The background of the flag is a rectangle that is 18 units ...
Bbrk24's user avatar
  • 3,863
20 votes
12 answers
3k views

The hashtag #メキシカンハットチャレンジ* appeared on my X/twitter feed today. Japanese hackers have been drawing the "Mexican Hat Potential" 3D curve on all sorts of ...
roblogic's user avatar
  • 4,629
21 votes
22 answers
2k views

Inspired by this X post. Write a program or function that takes a string as input and prints or otherwise renders the text with each word in a random color, e.g.: The input will be a string of ...
Jordan's user avatar
  • 12k
8 votes
7 answers
3k views

In June 2023, at Xenium Party 2023, a 4KB intro created by Wacek, Luke, and Jammer for the Commodore 64 was presented, featuring the face of a waiting girl. The task is to write the shortest possible ...
Kamil Kiełczewski's user avatar
16 votes
10 answers
1k views

Related: Draw A Reuleaux Triangle!, Draw a regular polygon A Reuleaux polygon is a curve of constant width made up of circular arcs of constant radius. The most well-known Reuleaux polygon is the ...
noodle person's user avatar
12 votes
1 answer
488 views

If you model a satellite as a free point orbiting a body, you can pretty easily see it has 6 degrees of freedom: three for the X, Y, and Z position, and three for the X, Y, and Z velocity. However, ...
user119818's user avatar
  • 1,631
14 votes
4 answers
1k views

The arrangement algorithm I think I've determined the algorithm that Google Calendar uses to visually arrange day-long and longer events at the top of the "Week" view (you may have an ...
Nicola Sap's user avatar
  • 3,823
19 votes
5 answers
3k views

Title courtesy of Greg Martin For this challenge, I'll define an arc of size \$k\$ as a single piece of a sine wave with a length of \$k\$ units and an height of \$\frac{k}{4}\$ units: And I'll ...
emanresu A's user avatar
  • 46.2k
6 votes
7 answers
868 views

Challenge Display Inky the ghost from Pac-Man using only ANSI escape codes. Here's a text representation of the image ...
vengy's user avatar
  • 2,309
7 votes
3 answers
313 views

You want to draw a regular polygon but you have limited space! In this challenge, you should draw a polygon with n sides which is as big as possible for a given square container image. I found ...
anatolyg's user avatar
  • 14.2k
15 votes
21 answers
3k views

Interestingly, although there are challenges that work with images, there is no challenge to simply output an image. This is that challenge Goal: output an image in the shortest possible code. Output: ...
Jakav's user avatar
  • 345

15 30 50 per page
1
2 3 4 5
25