This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
var canvasDiv = document.getElementById('sketchdiv') | |
var width = canvasDiv.offsetWidth | |
var height = 600 | |
var cnv = createCanvas(width, height); | |
cnv.parent('sketchdiv'); | |
background(206, 200, 176); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PIL, random, sys | |
from PIL import Image, ImageDraw | |
origDimension = 1500 | |
r = lambda: random.randint(50,215) | |
rc = lambda: (r(), r(), r()) | |
listSym = [] | |
def create_square(border, draw, randColor, element, size): | |
if (element == int(size/2)): | |
draw.rectangle(border, randColor) | |
elif (len(listSym) == element+1): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Test me | |
Connect |
NewerOlder