Search Results
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 |
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].
0
votes
Draw the Swiss Flag
Python 2, 170 bytes
Uses Pillow 2.8.0 with PIL 1.1.7 for the old (and deprecated) offset method.
from PIL.ImageDraw import*
i=Image.new('RGB',(20,20),-1)
Draw(i).rectangle((3,3,18,18),'red',-1)
k=Im …
2
votes
Any lips images
Shadertoy (GLSL) 125 bytes + input data
vec2 a[]=vec2[](vec2(-390, 0),vec2(-130,120),vec2(130,-120),vec2(390,0));
float d=1180.;
void mainImage(out vec4 o,vec2 c){c-=iResolution.xy/2.;o-=o;for(int i= …
4
votes
Draw the national flag of Iceland
GLSL, 266 265 bytes (non-competing)
Just for fun!
Only input it takes is the uniform which is the resolution of the texture it draws to. Needs an existing OpenGL context.
The function r masks a rect …
2
votes
Draw the Ionising Radiation Hazard Symbol
GLSL / Shadertoy, 181 bytes
void mainImage(out vec4 o,vec2 c)
{
vec2 p=(c-iResolution.xy/2.)/iResolution.y;
float k=length(p),h=acos(-1.)/3.;
o=step(0.,min(k-.1,max(k-.5,.15-k)*step(mod …
270
votes
Draw the national flag of Iceland
Python 3, 190 172 171 169 167 160 159 147 143 bytes
Using PIL version 1.1.7 which has a deprecated but not removed offset method.
from PIL.ImageDraw import*
i=Image.new('RGB',(25,18),'#d72828')
Draw …
12
votes
Computer Generated Cracked Soil
Python 3 (using Kivy library and GLSL)
First generated image
Python code:
import os
os.environ['KIVY_NO_ARGS'] = '1'
from kivy.config import Config
Config.set('input','mouse','mouse,disable_mult …