12. Rumus Python Membuat Lingkaran,kotak,segitiga,garis Acak
from graphics import *
import random, time
def main():
area = GraphWin("Tugas Algoritma Menggambar Garis,Kotak,Segitiga,Lingkaran Acak", 700, 700)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
Text( Point(250,20),"Tugas Algoritma Selesai").draw(area)
area.getMouse()
area.close()
main()
13. MENCARI IMPUTAN DATA
def menu ():
print ("Program Matematika dengan Python")
print ("------------------------------------------------")
print ("1. Menghitung Luas dan Keliling Segiempat")
print ("2. Menghitung Luas dan Keliling Lingkaran")
print ("3. Menghitung Luas Segitiga")
print ("4. Keluar")
def persegi():
print ("Menghitung Luas Persegi Panjang ")
p=int(input("Masukkan panjang : "))
l=int(input("Masukkan Lebar : "))
luas=p*l
kel=2*(p+l)
print ("Luas Persegi Panjang adalah ",float(luas))
print ("Keliling Persegi Panjang adalah ",float(kel))
print ()
print ("Mau Coba Lagi [Y/N]?")
ulang =(input().upper())
if ulang =="Y":
menu()
else:
exit()
def Lingkaran():
print ("Menghitung Luas Keliling Lingkaran")
r = int(input("Masukkan Jari-Jari : "))
luas = 3.14*(r**2)
kel = 2 * 3.14*r
print ("Luas Lingkaran adalah ",float(luas))
print ("Keliling Lingkaran adalah ",float(kel))
print ()
print ("Mau Coba Lagi [Y/N]? ")
ulang = (input().upper())
if ulang == "Y":
menu()
else:
exit()
def segitiga():
print ("Menghitung Luas Segitiga")
a = int(input("Masukkan Alas : "))
t = int(input("masukkan Tinggi : "))
luas = (a*t)/2
print ("Luas Segitiga adalah ",float(luas))
print()
print("Mau Coba Lagi [Y?N] ")
ulang = (input().upper())
if ulang == "Y":
menu()
else:
exit()
#Program Utama
menu()
while 1:
pilih = int(input("Masukkan pilihan Anda : "))
if pilih == 1:
persegi()
elif pilih == 2:
Lingkaran()
elif pilih == 3:
segitiga()
elif pilih == 4:
exit()
else:
print ("Maaf Pilihan yang Anda Masukkan Tidak Benar!")
print ("Coba Lagi [Y/N] ? ")
ulang = (input().upper())
if ulang == "Y":
mrnu()
else:
print ("\n"*3)
RUMUS PYTHON NEW
A.
from graphics import *
import random, time
def main():
area = GraphWin("Tugas Algoritma Menggambar Garis,Kotak,Segitiga,Lingkaran Acak", 700, 700)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
Text( Point(250,20),"Tugas Algoritma Selesai").draw(area)
area.getMouse()
area.close()
main()
B. Program Kasir
def penjualan():
print("PENJUALAN---------------------------")
kode_barang = input("Kode Barang = ")
jumlah=int(input("Jumlah Barang = "))
print("------------------------------------")
if kode_barang=="001":
nama_barang="Teh Kotak"
harga=4500
elif kode_barang=="002":
nama_barang="Coca-Cola"
harga=5600
elif kode_barang=="003":
nama_barang="Ultra Milk"
harga=5000
else:
print("Maaf Kode tidak ditemukan")
if 10<=jumlah<=19: #10-19
diskon=10/100
ket= "10%"
elif 20<=jumlah<=29: #20-29
diskon=15/100
ket= "15%"
elif jumlah>=30: #>=30
diskon=20/100
ket= "20%"
else:
diskon=0
total=harga*jumlah
diskon=total*diskon
print("PEMBAYARAN------------------------")
print("Nama Barang = ",nama_barang)
print("Harga Barang = ",harga,"Jumlah = ",jumlah)
print("----------------------------------")
print("Diskon = ",(ket),"Nilai Diskon = Rp.",float(diskon))
total=total-diskon
print("Total Pembayaran = RP.",float(total))
print("Mau Melakukan Transaksi Lagi [Y/N]?")
lagi=(input().upper())
if lagi =="Y":
penjualan()
else:
exit()
penjualan()
C.
def penjualan():
print("PENJUALAN---------------------------")
kode_barang = input("Kode Barang = ")
jumlah=int(input("Jumlah Barang = "))
print("------------------------------------")
if kode_barang=="001":
nama_barang="Teh Kotak"
harga=4500
elif kode_barang=="002":
nama_barang="Coca-Cola"
harga=5600
elif kode_barang=="003":
nama_barang="Ultra Milk"
harga=5000
else:
print("Maaf Kode tidak ditemukan")
if 10<=jumlah<=19: #10-19
diskon=10/100
ket= "10%"
elif 20<=jumlah<=29: #20-29
diskon=15/100
ket= "15%"
elif jumlah>=30: #>=30
diskon=20/100
ket= "20%"
else:
diskon=0
total=harga*jumlah
diskon=total*diskon
print("PEMBAYARAN------------------------")
print("Nama Barang = ",nama_barang)
print("Harga Barang = ",harga,"Jumlah = ",jumlah)
print("----------------------------------")
print("Diskon = ",(ket),"Nilai Diskon = Rp.",float(diskon))
total=total-diskon
print("Total Pembayaran = RP.",float(total))
print("Mau Melakukan Transaksi Lagi [Y/N]?")
lagi=(input().upper())
if lagi =="Y":
penjualan()
else:
exit()
penjualan()
D. UTS ARIB HERZI SEMESTER 1
n=0
n1=0
n2=0
n3=0
kode=[]
namabarang=[]
Rak=[]
harga=[]
stok=[]
while 1:
print("Data ke -",n+1)
kode.append(input("Masukan Kode Barang : "))
namabarang.append(input("Masukan Nama Barang : "))
harga.append(input("Masukan Harga : "))
stok.append(input("Masukan Stok : "))
if len(kode[n])!=7:
print("Kode Barang tidak terdaftar")
print()
namabarang.pop(n)
kode.pop(n)
harga.pop(n)
stok.pop(n)
continue
Rak.append(kode[n][0:2])
if Rak [n]=="01":
Rak[n]="Depan"
n1=n1+1
elif Rak [n]=="02":
Rak[n]="Samping"
n2=n2+1
elif Rak [n]=="03":
Rak[n]="Tengah"
n3=n3+1
else:
print("Rak Salah")
print()
continue
lagi=""
while lagi!='y' and lagi!='t':
lagi=(input("input lagi Y/T : "))
n+=1
if lagi=="t":
break
print("=============================Daftar Barang==================================")
print("\nNo Kode Barang Nama Barang Rak Harga Stok ")
print("============================================================================")
for i in range(n):
print(i+1," ", kode[i]," "*(13-len(kode[i])), namabarang[i],
" "*(16-len(namabarang[i])), " ",Rak[i],
" "*(7-len(Rak[i])), " ",harga[i],
" "*(12-len(harga[i])), stok[i], " "*(6-len(stok[i])))
print()
print()
print("\njumlah Data Rak Depan = %d " %(n1))
print("\njumlah Data Rak Samping = %d " %(n2))
print("\njumlah Data Rak Tengah = %d " %(n3))
RUMUS PYTHON NEW
A.
from graphics import *
import random, time
def main():
area = GraphWin("Tugas Algoritma Menggambar Garis,Kotak,Segitiga,Lingkaran Acak", 700, 700)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(8)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(9)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(11)
garis.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setOutline(warna2)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb(r,g,b)
warna2 = color_rgb(r2,g2,b2)
a = random.randrange(50, 650)
b = random.randrange(50, 650)
c = random.randrange(50, 650)
d = random.randrange(50, 650)
e = random.randrange(50, 650)
f = random.randrange(50, 650)
segitiga = Polygon([Point(a,b),Point(c,d),Point(e,f)])
segitiga.setFill(warna)
segitiga.setOutline(warna2)
segitiga.setWidth(8)
segitiga.draw(area)
time.sleep(0.02)
for i in range(1):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
r2 = random.randrange(256)
g2 = random.randrange(256)
b2 = random.randrange(256)
warna = color_rgb (r,g,b)
warna2 = color_rgb (r2,g2,b2)
a = random.randrange(250, 400)
b = random.randrange(250, 400)
koordinat = random.randrange(100,150)
circle = Circle(Point(a, b), koordinat)
circle.setFill(warna)
circle.setOutline(warna2)
circle.setWidth(7)
circle.draw(area)
time.sleep(0.02)
Text( Point(250,20),"Tugas Algoritma Selesai").draw(area)
area.getMouse()
area.close()
main()
B. Program Kasir
def penjualan():
print("PENJUALAN---------------------------")
kode_barang = input("Kode Barang = ")
jumlah=int(input("Jumlah Barang = "))
print("------------------------------------")
if kode_barang=="001":
nama_barang="Teh Kotak"
harga=4500
elif kode_barang=="002":
nama_barang="Coca-Cola"
harga=5600
elif kode_barang=="003":
nama_barang="Ultra Milk"
harga=5000
else:
print("Maaf Kode tidak ditemukan")
if 10<=jumlah<=19: #10-19
diskon=10/100
ket= "10%"
elif 20<=jumlah<=29: #20-29
diskon=15/100
ket= "15%"
elif jumlah>=30: #>=30
diskon=20/100
ket= "20%"
else:
diskon=0
total=harga*jumlah
diskon=total*diskon
print("PEMBAYARAN------------------------")
print("Nama Barang = ",nama_barang)
print("Harga Barang = ",harga,"Jumlah = ",jumlah)
print("----------------------------------")
print("Diskon = ",(ket),"Nilai Diskon = Rp.",float(diskon))
total=total-diskon
print("Total Pembayaran = RP.",float(total))
print("Mau Melakukan Transaksi Lagi [Y/N]?")
lagi=(input().upper())
if lagi =="Y":
penjualan()
else:
exit()
penjualan()
C.
def penjualan():
print("PENJUALAN---------------------------")
kode_barang = input("Kode Barang = ")
jumlah=int(input("Jumlah Barang = "))
print("------------------------------------")
if kode_barang=="001":
nama_barang="Teh Kotak"
harga=4500
elif kode_barang=="002":
nama_barang="Coca-Cola"
harga=5600
elif kode_barang=="003":
nama_barang="Ultra Milk"
harga=5000
else:
print("Maaf Kode tidak ditemukan")
if 10<=jumlah<=19: #10-19
diskon=10/100
ket= "10%"
elif 20<=jumlah<=29: #20-29
diskon=15/100
ket= "15%"
elif jumlah>=30: #>=30
diskon=20/100
ket= "20%"
else:
diskon=0
total=harga*jumlah
diskon=total*diskon
print("PEMBAYARAN------------------------")
print("Nama Barang = ",nama_barang)
print("Harga Barang = ",harga,"Jumlah = ",jumlah)
print("----------------------------------")
print("Diskon = ",(ket),"Nilai Diskon = Rp.",float(diskon))
total=total-diskon
print("Total Pembayaran = RP.",float(total))
print("Mau Melakukan Transaksi Lagi [Y/N]?")
lagi=(input().upper())
if lagi =="Y":
penjualan()
else:
exit()
penjualan()
D. UTS ARIB HERZI SEMESTER 1
n=0
n1=0
n2=0
n3=0
kode=[]
namabarang=[]
Rak=[]
harga=[]
stok=[]
while 1:
print("Data ke -",n+1)
kode.append(input("Masukan Kode Barang : "))
namabarang.append(input("Masukan Nama Barang : "))
harga.append(input("Masukan Harga : "))
stok.append(input("Masukan Stok : "))
if len(kode[n])!=7:
print("Kode Barang tidak terdaftar")
print()
namabarang.pop(n)
kode.pop(n)
harga.pop(n)
stok.pop(n)
continue
Rak.append(kode[n][0:2])
if Rak [n]=="01":
Rak[n]="Depan"
n1=n1+1
elif Rak [n]=="02":
Rak[n]="Samping"
n2=n2+1
elif Rak [n]=="03":
Rak[n]="Tengah"
n3=n3+1
else:
print("Rak Salah")
print()
continue
lagi=""
while lagi!='y' and lagi!='t':
lagi=(input("input lagi Y/T : "))
n+=1
if lagi=="t":
break
print("=============================Daftar Barang==================================")
print("\nNo Kode Barang Nama Barang Rak Harga Stok ")
print("============================================================================")
for i in range(n):
print(i+1," ", kode[i]," "*(13-len(kode[i])), namabarang[i],
" "*(16-len(namabarang[i])), " ",Rak[i],
" "*(7-len(Rak[i])), " ",harga[i],
" "*(12-len(harga[i])), stok[i], " "*(6-len(stok[i])))
print()
print()
print("\njumlah Data Rak Depan = %d " %(n1))
print("\njumlah Data Rak Samping = %d " %(n2))
print("\njumlah Data Rak Tengah = %d " %(n3))