Memulai Program Python
" Silahkan dipelajari bukan untuk Copas"
1. Rumus Python Membuat Garis Vertikal
from graphics import *
import random, time
def main():
area = GraphWin("Menggambar Garis", 500, 500)
warna = color_rgb (0,0,255)
garis = Line(Point(100,100),Point(400,450))
garis.setOutline(warna)
garis.setWidth(20)
garis.draw(area)
Text( Point(250,20),"KLik sembarang objek.").draw(area)
area.getMouse()
area.close()
main()
2. Rumus Python Membuat Garis Horizontal
import random, time
def main():
area = GraphWin("Menggambar Garis", 500, 500)
warna = color_rgb (0,225,0)
warna2 = color_rgb (255,0,255)
garis = Line(Point(100,225),Point(400,225))
garis2 = Line(Point(250,100),Point(250,400))
garis.setOutline(warna)
garis2.setOutline(warna2)
garis.setWidth(20)
garis2.setWidth(10)
garis.draw(area)
garis2.draw(area)
Text( Point(250,20),"KLik sembarang objek.").draw(area)
area.getMouse()
area.close()
main()
3. Rumus Python Membuat Garis Acak
from graphics import *
import random, time
def main():
area = GraphWin("Menggambar Garis Acak", 500, 500)
for i in range(60):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(5, 495)
b = random.randrange(5, 495)
c = random.randrange(5, 495)
d = random.randrange(5, 495)
garis = Line(Point(a,b),Point(c,d))
garis.setOutline(warna)
garis.setWidth(10)
garis.draw(area)
time.sleep(.1)
Text( Point(250,20),"KLik sembarang objek.").draw(area)
area.getMouse()
area.close()
main()
4. Rumus Python Membuat Kotak
from graphics import *
import random, time
def main():
area = GraphWin("Menggambar Garis", 500, 500)
warna = color_rgb (0,0,255)
warna2 = color_rgb (0,255,0)
warna3 = color_rgb (255,255,255)
warna4 = color_rgb (255,0,0)
kotak = Rectangle(Point(100,250),Point(250,100))
kotak2 = Rectangle(Point(250,100),Point(100,250))
kotak3 = Rectangle(Point(250,100),Point(100,250))
kotak4 = Rectangle(Point(100,250),Point(250,100))
kotak.setFill(warna)
kotak2.setFill(warna2)
kotak3.setFill(warna3)
kotak4.setFill(warna4)
kotak.draw(area)
kotak2.draw(area)
kotak3.draw(area)
kotak4.draw(area)
Text( Point(250,20),"KLik sembarang objek.").draw(area)
Text( Point(250,20),"KLik sembarang objek.").draw(area)
Text( Point(250,20),"KLik sembarang objek.").draw(area)
Text( Point(250,20),"KLik sembarang objek.").draw(area)
area.getMouse()
area.close()
main()
5. Rumus Python Membuat Kotak lebih banyak
from graphics import *
import random, time
def main():
area =GraphWin ("menggambar Kotak ", 700, 700)
warna = color_rgb(255,0,0)
warna2 = color_rgb(255,0,60)
warna3 = color_rgb(0,0,255)
warna4 = color_rgb(0,255,0)
warna5 = color_rgb(255,0,0)
warna6 = color_rgb(255,0,50)
warna7 = color_rgb(50,180,50)
warna8 = color_rgb(50,250,0)
warna9 = color_rgb(100,230,180)
warna10 = color_rgb(100,150,115)
warna11 = color_rgb(255,100,30)
warna12 = color_rgb(230,100,50)
warna13 = color_rgb(255,20,30)
warna14 = color_rgb(200,80,0)
warna15 = color_rgb(50,100,50)
warna16 = color_rgb(30,30,100)
warna17 = color_rgb(50,100,50)
warna18 = color_rgb(50,100,50)
warna19 = color_rgb(100,100,50)
warna20= color_rgb(100,100,50)
warna21 = color_rgb(150,140,50)
warna22 = color_rgb(255,90,50)
warna23 = color_rgb(255,90,100)
warna24 = color_rgb(200,90,100)
warna25 = color_rgb(180,60,80)
warna26 = color_rgb(150,60,80)
warna27 = color_rgb(150,100,80)
warna28 = color_rgb(180,100,80)
warna29 = color_rgb(80,100,80)
warna30 = color_rgb(80,255,50)
warna31 = color_rgb(150,80,50)
warna32 = color_rgb(150,80,80)
kotak = Rectangle(Point(1,350),Point(350,790))
kotak2 = Rectangle(Point(350,700),Point(700, 350))
kotak3 = Rectangle(Point(1,350),Point(350,1))
kotak4 = Rectangle(Point(700,350),Point(350,700))
kotak5 = Rectangle(Point(1,130),Point(130,1))
kotak6 = Rectangle(Point(130,230),Point(230,130))
kotak7 = Rectangle(Point(230,350),Point(350,230))
kotak8 = Rectangle(Point(120,1),Point(1,120))
kotak9 = Rectangle(Point(1,110),Point(110,1))
kotak10 = Rectangle(Point(100,1),Point(1,100))
kotak11= Rectangle(Point(220,130),Point(130,220))
kotak12= Rectangle(Point(130,210),Point(210,130))
kotak13= Rectangle(Point(200,130),Point(130,200))
kotak14= Rectangle(Point(130,190),Point(190,130))
kotak15 = Rectangle(Point(340,230),Point(230,340))
kotak16 = Rectangle(Point(230,330),Point(330,230))
kotak17 = Rectangle(Point(320,230),Point(230,320))
kotak18 = Rectangle(Point(700,570),Point(570,700))
kotak19 = Rectangle(Point(570,470),Point(470,570))
kotak20 = Rectangle(Point(470,350),Point(350,470))
kotak21 = Rectangle(Point(570,690),Point(690,570))
kotak22 = Rectangle(Point(680,570),Point(570,680))
kotak23 = Rectangle(Point(570,670),Point(670,570))
kotak24 = Rectangle(Point(560,470),Point(470,560))
kotak25 = Rectangle(Point(470,550),Point(550,470))
kotak26 = Rectangle(Point(540,470),Point(470,540))
kotak27 = Rectangle(Point(460,350),Point(350,460))
kotak28 = Rectangle(Point(350,450),Point(450,350))
kotak29 = Rectangle(Point(440,350),Point(350,440))
kotak30 = Rectangle(Point(20,370),Point(330,680))
kotak31 = Rectangle(Point(380,30),Point(670,330))
kotak32 = Rectangle(Point(30,390),Point(320,670))
kotak.setFill(warna)
kotak2.setFill(warna2)
kotak3.setFill(warna3)
kotak4.setFill(warna4)
kotak5.setFill(warna5)
kotak6.setFill(warna6)
kotak7.setFill(warna7)
kotak8.setFill(warna8)
kotak9.setFill(warna9)
kotak10.setFill(warna10)
kotak11.setFill(warna11)
kotak12.setFill(warna12)
kotak13.setFill(warna13)
kotak14.setFill(warna14)
kotak15.setFill(warna15)
kotak16.setFill(warna16)
kotak17.setFill(warna17)
kotak18.setFill(warna18)
kotak19.setFill(warna19)
kotak20.setFill(warna20)
kotak21.setFill(warna21)
kotak22.setFill(warna22)
kotak23.setFill(warna23)
kotak24.setFill(warna24)
kotak25.setFill(warna25)
kotak26.setFill(warna26)
kotak27.setFill(warna27)
kotak28.setFill(warna28)
kotak29.setFill(warna29)
kotak30.setFill(warna30)
kotak31.setFill(warna31)
kotak32.setFill(warna32)
kotak.draw(area)
kotak2.draw(area)
kotak3.draw(area)
kotak4.draw(area)
kotak5.draw(area)
kotak6.draw(area)
kotak7.draw(area)
kotak8.draw(area)
kotak9.draw(area)
kotak10.draw(area)
kotak11.draw(area)
kotak12.draw(area)
kotak13.draw(area)
kotak14.draw(area)
kotak15.draw(area)
kotak16.draw(area)
kotak17.draw(area)
kotak18.draw(area)
kotak19.draw(area)
kotak20.draw(area)
kotak21.draw(area)
kotak22.draw(area)
kotak23.draw(area)
kotak24.draw(area)
kotak25.draw(area)
kotak26.draw(area)
kotak27.draw(area)
kotak28.draw(area)
kotak29.draw(area)
kotak30.draw(area)
kotak31.draw(area)
kotak32.draw(area)
Text(Point(250, 20), "klik sembarang objek").draw(area)
area.getMouse()
area.close()
main()
6. Rumus Python Membuat Kotak Acak
from graphics import *
import random, time
def main():
area = GraphWin("Menggambar Kotak Acak", 500, 500)
for i in range(60):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(5, 495)
b = random.randrange(5, 495)
c = random.randrange(5, 495)
d = random.randrange(5, 495)
kotak= Rectangle(Point(a,b),Point(c,d))
kotak.setFill(warna)
kotak.setWidth(10)
kotak.draw(area)
time.sleep(.1)
Text( Point(250,20),"KLik sembarang objek.").draw(area)
area.getMouse()
area.close()
main()
7. Rumus Python Membuat Segitiga
from graphics import *
def main():
area = GraphWin("Menggambar Segitiga", 500, 500)
warna_isi = color_rgb(255,50,50)
titik = [Point(100,50),Point(450,100),Point(250,300)]
triangle = Polygon(titik)
triangle.setFill(warna_isi)
warna_garis = color_rgb(0,255,0)
triangle.setOutline(warna_garis)
triangle.setWidth(5)
triangle.draw(area)
Text(Point(250, 20), "Klik sembarang objek.").draw(area)
area.getMouse()
area.close()
main()
8. Rumus Python Membuat Segilima
from graphics import *
def main():
area = GraphWin("Menggambar Segitiga", 500, 500)
warna_isi = color_rgb(255,50,50)
titik = [Point(100,50),Point(400,100),Point(450,300),
Point(350,350),Point(100,300),Point(50,200)]
triangle = Polygon(titik)
triangle.setFill(warna_isi)
warna_garis = color_rgb(0,255,0)
triangle.setOutline(warna_garis)
triangle.setWidth(5)
triangle.draw(area)
Text(Point(250, 20), "Klik sembarang objek.").draw(area)
area.getMouse()
area.close()
main()
9. Rumus Python Membuat Lingkaran
def main():
win = GraphWin("Menggambar Lingkaran", 500, 500)
color= color_rgb(255,50,50)
radius = 200
a = 250
b = 250
circle = Circle(Point(a,b), radius)
circle.setFill(color)
warna_garis = color_rgb(0,255,0)
circle.setOutline(warna_garis)
circle.setWidth(5)
circle.draw(win)
main()
10. Rumus Python Membuat Lingkaran Acak
import random, time
def main():
area = GraphWin("Menggambar Lingkaran Acak", 500, 500)
for i in range(600):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
a = random.randrange(5, 495)
b = random.randrange(5, 495)
radius = random.randrange(5,495)
circle = Circle(Point(a, b), radius)
circle.setFill(warna)
circle.setWidth(4)
circle.draw(area)
time.sleep(.1)
Text( Point(250,20),"KLik sembarang objek.").draw(area)
area.getMouse()
area.close()
main()
11. Rumus Python Membuat Lingkaran,kotak,segitiga,garis Acak
import random, time
def main():
area = GraphWin("Menggambar Kotak Acak", 500, 500)
for i in range(60):
r = random.randrange(256)
g = random.randrange(256)
b = random.randrange(256)
warna = color_rgb (r,g,b)
warna1 = color_rgb (r,g,b)
warna2 = color_rgb (r,g,b)
warna3 = color_rgb (r,g,b)
a = random.randrange(5, 495)
b = random.randrange(5, 495)
c = random.randrange(5, 495)
d = random.randrange(5, 495)
radius = random.randrange(5,495)
kotak= Rectangle(Point(a,b),Point(c,d))
circle = Circle(Point(a, b), radius)
garis = Line(Point(a,b),Point(c,d))
titik = [Point(100,50),Point(450,100),Point(250,300)]
triangle = Polygon(titik)
kotak.setFill(warna)
circle.setFill(warna1)
garis.setOutline(warna2)
triangle.setFill(warna3)
kotak.setWidth(4)
circle.setWidth(4)
garis.setWidth(4)
triangle.setWidth(5)
kotak.draw(area)
circle.draw(area)
garis.draw(area)
triangle.draw(area)
time.sleep(.1)
Text( Point(250,20),"KLik sembarang objek.").draw(area)
area.getMouse()
area.close()
main()
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.
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.
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))
0 komentar:
Post a Comment