Ce projet essai, en partant d'une IMAGESOURCE de : - appliquer des effets à l'image - la redimmensionner - changer son mode de couleur - la HAACHEER...
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

41 lines
746 B

#!/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)
'''