HH_/0_motif.py

42 wiersze
746 B
Python

#!/usr/bin/python
# coding: utf-8
def pr3nt():
print hello
'''
import sys
import Image
import random
import os
import ImageDraw
import ImageFont
import ImageFilter
from time import gmtime, strftime
# MILLISECONDES
from datetime import datetime
dt = datetime.now()
dt.microsecond
heure = str(dt.hour)+"h"+str(dt.minute)+"m"+str(dt.second)+"s"+str(dt.microsecond)+"ms"
image = Image.new("RGBA",(512,512), "black")
h = image.size[0]
l = image.size[1]
motif = ImageDraw.Draw(image)
def motifs(image):
n = 0
ecart = 20
tranches = h / ecart
while n < tranches :
rx = random.randint(0,l/2)
image.rectangle(((rx,n*tranches),(rx+l/2,n*tranches+tranches)),"white")
n = n + 1
motifs(motif)
image.save(heure+".png",'PNG', quality=100)
'''