>> |
Anonymous
>>421201 from PIL import Image size = 800 run1 = 100 run2 = 100
image = Image.new("L",(size,size),0) pixel = image.load()
size -= 1 rang = range(0,size)
for a in rang: pixel[size,a] = pixel[a,size] = pixel[a,0] = pixel[0,a] = 122 a0 = 1.1 * a/size + 2.9 b = 0.5 for k in range(run1+run2): b = a0*(1-b)*b if run1<k and 0<b<=size: pixel[a,(1-b)*size] = 255
image.show()
|