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].
316
questions
2
votes
0answers
168 views
Make a QR quine [closed]
A "qruine" if you will :)
Design a QR code that legibly spells with its pixels (or the space between them) the text that it scans to.
For example, this QR code scans to the letter A, and ...
-6
votes
0answers
141 views
intersection of lists of circles
We have had several challenges about the intersection of circles on a cartesian plane, including
Circle intersection area
Intersection of circles – How can I reduce this golf code to 127 bytes?
...
13
votes
17answers
1k views
Plot a centered circle
Intro
Given radius \$r\$, draw a circle in the center of the screen.
Sandbox.
The Challenge
Here is a simple challenge.
Plot a circle using the formula \$x^2+y^2=r^2\$, or any other formula that will ...
10
votes
3answers
434 views
Draw the “{🏅} CODE GOLF & coding challenges” logo!
Wow, time really flies! It's already been one year since the debut of the Code Golf Stack Exchange site design. Let's celebrate this milestone with a code golf challenge... to imitate the site logo!
...
16
votes
5answers
3k views
Draw the NASA worm logo
Introduction
On 30 May 2020, NASA and SpaceX launched a manned rocket to the international space station on the SpaceX Demo 2 mission. This is the first time humans have been launched into orbit from ...
5
votes
3answers
611 views
Solve the Rook's Round Trip
The riddle
In yesterday's newspaper, I found a puzzle in which a Rook should start in the lower-left corner of a 12x12 checkerboard and then, during a round trip, visit each field exactly once except ...
25
votes
6answers
3k views
Tile the plane with squashed hexagons
I came across an interesting tiling of the plane using squashed hexagons in a popular math book. All the six edges of the squashed hexagon are the same length. Two opposite corners are right angles ...
16
votes
11answers
3k views
Create pixel art!
The task
Given an image as input, your task is to do the following:
Resize the image so it is At least 2 times smaller, but still has the same width/height ratio by taking every second (if resized ...
17
votes
5answers
917 views
Generate Green Spray Paint Patterns
This challenge is about creating these neat "green spray paint" patterns: (more pictures below)
Loosely explained, they are generated by starting with a black image and a point in the center. ...
8
votes
7answers
569 views
Produce an image based on an elementary cellular automata ruleset
What is elementary cellular automata?
Since I'm not sure I'll be able to explain this so that somebody who has never heard of this is able to understand, I'm giving an explanation from https://...
25
votes
11answers
3k views
Any lips images
Introduction
The \$n\$-ellipse is a generalization of the ellipse with possibly more than two foci. Specifically, given \$n\$ points on the plane, called foci, the \$n\$-ellipse is the set of points ...
3
votes
1answer
447 views
Simplify the following C ascii graphing function
This wasn't originally intended for code-golf, just as a little debugging routine to roughly visualize something "goofy" going on in a model of some (irrelevant here) physical process. But when I saw ...
40
votes
28answers
6k views
Draw the Ionising Radiation Hazard Symbol
Draw the ionising-radiation-hazard-symbol in an arbitrary colour on a distinctly coloured background. The specific proportions were published in the June 27th 1974 issue of the Federal Register of the ...
10
votes
5answers
667 views
Draw the flag of Tennessee
The flag of Tennessee is specified by chapter 498 of the Public Acts of 1905.
An oblong flag or banner in length one and two thirds times its width, the large or principal field of same to be of ...
5
votes
4answers
533 views
Codegolf : the HEX [closed]
INTRODUCTION
I like Karma Fields : he's a music producer that creates original music tracks. His artwork also matches up really well his style.
He has a logo witch I find really interessing :
GOAL
...
7
votes
6answers
828 views
Creating a 16x16(NxN) grid [closed]
This is my first question in Code golf I found it in stack-overflow (originally in JavaScript however all languages are acceptable):
Render on screen NxN (where N ...
73
votes
17answers
18k views
Draw the ☣ (Biohazard Symbol)
Draw the Biohazard symbol in an arbitrary colour on a distinctly coloured background. The specific proportions were published in the June 27th 1974 issue of the Federal Register of the US Government.
...
14
votes
2answers
835 views
Create the least compressible picture
"A picture is worth a thousand words"—so the old saying goes. The average word is about four characters long, so a picture conveys 4kB of information. But how much entropy, rather than information, ...
12
votes
2answers
904 views
Tile the chessboard with four-colored triominoes
Task:
Consider the problem: "given a chessboard with one square missing, cut it into 21 L-triominoes". There is a well-known constructive proof that this can be done for any square ...
15
votes
3answers
488 views
Bridge the Gaps
Given a black and white image with a white background and a set of black dots, paint a set of white pixels red, such that there is a path between each pair of black pixels.
Details
A path is a set ...
45
votes
12answers
3k views
Prime parity peregrination
The purpose of this challenge is to graphically depict a walk on the plane, where the direction of each step \$k\$ is determined by the primality of \$k\$ and the parity of its binary expansion. ...
11
votes
1answer
345 views
Self-displaying image [closed]
Background
There are self-extracting .ZIP files. Typically they have the extension .EXE (and by executing the file they will be ...
8
votes
5answers
2k views
Using the smallest number of bytes of code, write a program that produces this image
Context:
Gynvael Coldwind, a famous security researcher, published a contest in his blog post (that is now complete). The goal was similar to the one described here, but with certain restrictions ...
14
votes
12answers
3k views
Draw the Easter Bunny
This happy individual is known in folklore as the Easter Bunny.
Colours
It is created using 4 colours:
Light pink
Dark pink
White
Black
(I'm happy for these colours to be approximated in your ...
50
votes
57answers
7k views
Generate an RGB colour grid
This! is an RGB colour grid...
Basically it's a 2-dimensional matrix in which:
The first row, and the first column, are red.
The second row, and the second column, are green.
The third row, and the ...
9
votes
6answers
499 views
Sub-pixel Zooming
Your task is to take a 24 BPP sRGB image and output the same image upscaled 3x into red, green, and blue subpixels. The resulting image will be made entirely of pure black, red, green, and blue pixels....
11
votes
29answers
6k views
Make a transparent 448*448 image
This is a simple challenge.
The task is to write code that outputs a 448*448 square image with 100% transparency. The output should follow the standard image rules.
14
votes
9answers
2k views
Drawing the Peano curve
Introduction
In geometry, the Peano curve is the first example of a space-filling curve to be discovered, by Giuseppe Peano in 1890. Peano's curve is a surjective, continuous function from the unit ...
6
votes
4answers
763 views
Generate Matlab plot markers
Matlab has a useful command for visualizing data: plot. It draws data points using "markers" in 2-D space, connecting them with lines; however, for this challenge, ...
9
votes
14answers
2k views
Draw a times table (also called modular multiplication circle) of a number \$n\$ with \$k\$ vertices
Not to be confused with this question.
You need to draw a times table (also known as Cremona's method for cardioid generation) as shown in this video. The number \$n\$ and \$k\$ will be the inputs.
...
33
votes
8answers
966 views
Can square tree rings be generated from primes?
Apparently yes! In three easy steps.
Step 1
Let f(n) denote the prime-counting function (number of primes less than or equal to n).
Define the integer sequence s(n) as follows. For each positive ...
18
votes
2answers
2k views
Implement the Boids algorithm
Introduction
The Boids Algorithm is a relatively simple demonstration of emergent behavior in a group. It has three main rules, as described by its creator, Craig Reynolds:
The basic flocking model ...
20
votes
1answer
397 views
Foam Bath Letters
If you have a small child in your house, you may have come across foam bath letters. These can be moistened and stuck to flat surfaces such as tiles and the side of the bath to make words and messages....
37
votes
26answers
10k views
Happy Birthday, Finland!
Introduction
As is known, in 2017, Finland celebrates its 100 years of independence. To mark the occasion, it is your job to produce a Finnish flag for everyone's enjoyment.
Challenge
Create a ...
0
votes
0answers
101 views
Large size letter [duplicate]
Convert a letter(you can choose upper or lower) into a picture, which only consist of '.' and '#' (or any two reasonable char), ...
15
votes
6answers
1k views
How to code colors in hex
Hexagonal tessellations, or tilings of the plane, are three-colorable -- meaning that using only three colors, such as Red, Blue, and Green, every hexagon can be colored without any two hexagons that ...
-2
votes
1answer
444 views
Drawing a square with an 'x' inside [closed]
Task:
Make a program that draws the following figure line by line.
Your program should wait for one-second after drawing each line(it can be longer, just has to be a noticeable difference) .
Your ...
10
votes
11answers
1k views
Generate a special period image
Construct a program or function that takes input in form of
<width>, <height>, <color1>, <color2>
and generates an output such that first ...
13
votes
7answers
804 views
Little Boxes on the Hillside
There's a satirical song called Little Boxes, originally by Malvina Reynolds, about suburban sprawl that has lyrics as follows:
Little boxes on the hillside,
Little boxes made of ticky-tacky,
...
2
votes
1answer
256 views
Application screen shot [closed]
Write the minimal code you need to take a screenshot of your application window. I am not asking for a function or program; just only a code segment.
It has obviously to be a GUI application; console ...
47
votes
50answers
13k views
Draw the Swiss Flag
Task: Output the Swiss flag.
Happy Swiss National Day / Schweizer Bundesfeiertag / Fête nationale suisse / Festa nazionale svizzera / Fiasta naziunala svizra!
Details:
The flag consists of a white ...
23
votes
14answers
3k views
The Chroma Key to Success
The RGB color value #00FF00 is a rather important one: it is used to make movies, TV shows, weather announcements, and more. It is the famous "TV green" ...
3
votes
4answers
444 views
Sandbox Visualization Module Emulator
The Zachtronics game TIS-100 contains a graphics display called the visualization module. I could try and explain the specs of this module, but the game's manual will do a better job:
(As you may ...
31
votes
4answers
768 views
A Dog on a Chain
I'm looking out of my attic window into my neighbor's yard. They have a dog chained to a post in the center of the yard. The dog runs around the yard but is always on the end of its chain, so it ...
41
votes
15answers
6k views
Let's draw Mona Lisa
In 2014, demoscener Jakub 'Ilmenit' Debski released a 250-byte(1) procedural graphics demo for the Atari XL called Mona. It's drawing the following picture(2):
Your task is to generate the exact same ...
28
votes
20answers
4k views
Draw A Reuleaux Triangle!
The Reuleaux triangle is the shape formed by the intersection of three circles, with each circle passing through the others' centers. Regardless of rotation, a Reuleaux triangle's width will always ...
46
votes
47answers
13k views
Display random colored pixels
I've always liked screens full of randomly colored pixels. They're interesting to look at and the programs that draw them are fun to watch.
The challenge
Fill your screen, or a graphical window, ...
63
votes
53answers
14k views
Display the Hacker Logo
You may have heard of the "Hacker Logo", also called the "Hacker Emblem". It looks like this:
This is a pattern from a mathematical simulation called the Game of Life. The glider is the simplest Life ...
21
votes
7answers
1k views
The strange attraction of the logistic map
The purpose of the challenge is to approximately plot the attractor of the logistic map as a function of its parameter r (also called bifurcation diagram), or a subregion of it. The appearance of the ...
3
votes
2answers
561 views
Print your system's logo [closed]
This is a throwback challenge. You will choose an old computer system and an old language created for that system.
The challenge
Pick an old computer system that was made before the year 2000. In a ...