#!/usr/bin/python # coding: utf-8 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("1", (512,512,), "white") h = image.size[0] l = image.size[1] img = ImageDraw.Draw(image) n = 0 ecart = 4 tranches = h / ecart while n < tranches : rx = random.randint(0,l/2) img.rectangle(((rx,n*tranches),(rx+l/2,n*tranches+tranches)),"white") n = n + 1 img.save(heure+".png",'PNG', quality=100) def txt(strii): print strii