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 answers only not deleted user 125566

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

1 vote

Draw the Archimedean Spiral

AWK, 139 bytes BEGIN{for(a=b=1;(t+=.1)<14;)g[15-int((r=a+b*t)*sin(t)+.5),50+2*int(r*cos(t)+.5)]=1 for(;k++<30;print)for(j=0;j++<99;)printf g[k,j]?"*":" "} Attempt This Online!
xrs's user avatar
  • 579
2 votes

Create a Pride Flag

AWK, 93 bytes func p(y){s="";for(x=20;x--;)s=s"\33["y"m█";print s}END{p(31)p(33)p("1;33")p(32)p(34)p(35)} Try it online!
xrs's user avatar
  • 579
4 votes

Draw the Flag of Greenland

AWK, 221 bytes func p(a,b){for(;a--;)printf(b?"\033[97m":"\033[31m")"█"}{n=$1;r=n/2;for(y=-r+2;y++<r-2;){g=n*y<r;p(int(2*r/3),g) for(x=-r;x++<r;)x*x+y*y*4<r*r?p(1,!g):p(1,g);p(n,g);print"";if(!y){p(in …
xrs's user avatar
  • 579
1 vote

Mandelbrot image in every language

AWK, 198 bytes BEGIN{a=-2;c=d=1;b=-1;w=140;h=40;m=250;x=(c-a)/w;y=(d-b)/h;for(r=0;r<h;r++){for(c=0;c<w;c++){q=a+c*x;s=d-r*y;for(R=I=t=0;R*R+I*I<=5&&t<m;t++){T=R*R-I*I+q;I=2*R*I+s;R=T}printf t==m?"#":" …
xrs's user avatar
  • 579
1 vote

Randomly color the words

AWK, 91 80 110 79 bytes NR<2{srand()}{for(i=0;i++<NF;){printf"\033[38;5;"int(rand()*99)"m"$i" "}}$0=" " Attempt This Online! NR<2{srand()} # seed only once (or colors repeat) {fo …
xrs's user avatar
  • 579