## Posted By

maturanti19 on 05/22/19

# Stvorcekova siet a kvapky random

/ Published in: Python

Vytvorte stvorcekovu siet a kvapky a rozne velke a dlhe ciary

`import tkinterfrom random import * canvas = tkinter.Canvas(height=600, width=800, bg='gainsboro')canvas.pack() for i in range (1,31):    farba = ('skyblue')    x=randrange(100,600)    y=randrange(100,800)    r=randrange(5,26)    canvas.create_oval(x-r, y-r, x+r, y+r, fill=farba, outline='') #z=50x=0for i in range (16):    x=x+z    canvas.create_line(x,0,x,600) #  z=50y=0for i in range (12):    y=y+z    canvas.create_line(0,y,800,y) #a=30b=40x=110y=110for i in range (5):    x=x+a    y=y+b    canvas.create_line(x+b,y+a,400+b,y+a, width=6, fill='gold')#a=30b=40y=100for i in range (5):    canvas.create_line(210,y+a*i,500,z+b*i, width=5, fill='indigo') #a=10b=40x=150y=350for i in range(5):    x=x+b    y=y+a    canvas.create_line(x,y+a,x,y+b, width=5, fill='red') #x=210y=510a=30b=25for i in range(5):    canvas.create_line(x+b*i,y+b*i,x+b*i,310-a, width=5, fill='pink')`