fork download
  1. import turtle
  2.  
  3.  
  4. def gajurel(x, y):
  5. turtle.setx(x)
  6. turtle.sety(y)
  7. print(x, y)
  8.  
  9.  
  10. class Cartoon:
  11.  
  12. def __init__(self):
  13. self.t = turtle.Turtle()
  14. t = self.t
  15. t.pensize(3)
  16. t.speed(9)
  17. t.ondrag(gajurel)
  18.  
  19. def meme(self, x, y):
  20. self.t.penup()
  21. self.t.goto(x, y)
  22. self.t.pendown()
  23.  
  24. def aankha1(self, x, y):
  25. self.meme(x, y)
  26. t = self.t
  27. t.seth(0)
  28. t.fillcolor('#333333')
  29. t.begin_fill()
  30. t.circle(22)
  31. t.end_fill()
  32.  
  33. self.meme(x, y + 10)
  34. t.fillcolor('#000000')
  35. t.begin_fill()
  36. t.circle(10)
  37. t.end_fill()
  38.  
  39. self.meme(x + 6, y + 22)
  40. t.fillcolor('#ffffff')
  41. t.begin_fill()
  42. t.circle(10)
  43. t.end_fill()
  44.  
  45. def aankha2(self, x, y):
  46. self.meme(x, y)
  47. t = self.t
  48. t.seth(0)
  49. t.fillcolor('#333333')
  50. t.begin_fill()
  51. t.circle(22)
  52. t.end_fill()
  53.  
  54. self.meme(x, y + 10)
  55. t.fillcolor('#000000')
  56. t.begin_fill()
  57. t.circle(10)
  58. t.end_fill()
  59.  
  60. self.meme(x - 6, y + 22)
  61. t.fillcolor('#ffffff')
  62. t.begin_fill()
  63. t.circle(10)
  64. t.end_fill()
  65.  
  66. def mukh(self, x, y):
  67. self.meme(x, y)
  68. t = self.t
  69.  
  70. t.fillcolor('#88141D')
  71. t.begin_fill()
  72. #
  73. l1 = []
  74. l2 = []
  75. t.seth(190)
  76. a = 0.7
  77. for i in range(28):
  78. a += 0.1
  79. t.right(3)
  80. t.fd(a)
  81. l1.append(t.position())
  82.  
  83. self.meme(x, y)
  84.  
  85. t.seth(10)
  86. a = 0.7
  87. for i in range(28):
  88. a += 0.1
  89. t.left(3)
  90. t.fd(a)
  91. l2.append(t.position())
  92.  
  93. #
  94.  
  95. t.seth(10)
  96. t.circle(50, 15)
  97. t.left(180)
  98. t.circle(-50, 15)
  99.  
  100. t.circle(-50, 40)
  101. t.seth(233)
  102. t.circle(-50, 55)
  103. t.left(180)
  104. t.circle(50, 12.1)
  105. t.end_fill()
  106.  
  107. #
  108. self.meme(17, 54)
  109. t.fillcolor('#DD716F')
  110. t.begin_fill()
  111. t.seth(145)
  112. t.circle(40, 86)
  113. t.penup()
  114. for pos in reversed(l1[:20]):
  115. t.goto(pos[0], pos[1] + 1.5)
  116. for pos in l2[:20]:
  117. t.goto(pos[0], pos[1] + 1.5)
  118. t.pendown()
  119. t.end_fill()
  120.  
  121. #
  122. self.meme(-17, 94)
  123. t.seth(8)
  124. t.fd(4)
  125. t.back(8)
  126.  
  127. #
  128. def gaala1(self, x, y):
  129. turtle.tracer(False)
  130. t = self.t
  131. self.meme(x, y)
  132. t.seth(300)
  133. t.fillcolor('#DD4D28')
  134. t.begin_fill()
  135. a = 2.3
  136. for i in range(120):
  137. if 0 <= i < 30 or 60 <= i < 90:
  138. a -= 0.05
  139. t.lt(3)
  140. t.fd(a)
  141. else:
  142. a += 0.05
  143. t.lt(3)
  144. t.fd(a)
  145. t.end_fill()
  146. turtle.tracer(True)
  147.  
  148. def gaala2(self, x, y):
  149. t = self.t
  150. turtle.tracer(False)
  151. self.meme(x, y)
  152. t.seth(60)
  153. t.fillcolor('#DD4D28')
  154. t.begin_fill()
  155. a = 2.3
  156. for i in range(120):
  157. if 0 <= i < 30 or 60 <= i < 90:
  158. a -= 0.05
  159. t.lt(3)
  160. t.fd(a)
  161. else:
  162. a += 0.05
  163. t.lt(3)
  164. t.fd(a)
  165. t.end_fill()
  166. turtle.tracer(True)
  167.  
  168. def kaan1(self, x, y):
  169. t = self.t
  170. self.meme(x, y)
  171. t.fillcolor('#000000')
  172. t.begin_fill()
  173. t.seth(330)
  174. t.circle(100, 35)
  175. t.seth(219)
  176. t.circle(-300, 19)
  177. t.seth(110)
  178. t.circle(-30, 50)
  179. t.circle(-300, 10)
  180. t.end_fill()
  181.  
  182. def kaan2(self, x, y):
  183. t = self.t
  184. self.meme(x, y)
  185. t.fillcolor('#000000')
  186. t.begin_fill()
  187. t.seth(300)
  188. t.circle(-100, 30)
  189. t.seth(35)
  190. t.circle(300, 15)
  191. t.circle(30, 50)
  192. t.seth(190)
  193. t.circle(300, 17)
  194. t.end_fill()
  195.  
  196. def jiu(self):
  197. t = self.t
  198.  
  199. t.fillcolor('#F6D02F')
  200. t.begin_fill()
  201. #
  202. t.penup()
  203. t.circle(130, 40)
  204. t.pendown()
  205. t.circle(100, 105)
  206. t.left(180)
  207. t.circle(-100, 5)
  208.  
  209. #
  210. t.seth(20)
  211. t.circle(300, 30)
  212. t.circle(30, 50)
  213. t.seth(190)
  214. t.circle(300, 36)
  215.  
  216. #
  217. t.seth(150)
  218. t.circle(150, 70)
  219.  
  220. #
  221. t.seth(200)
  222. t.circle(300, 40)
  223. t.circle(30, 50)
  224. t.seth(20)
  225. t.circle(300, 35)
  226. # print(t.pos())
  227.  
  228. #
  229. t.seth(240)
  230. t.circle(105, 95)
  231. t.left(180)
  232. t.circle(-105, 5)
  233.  
  234. #
  235. t.seth(210)
  236. t.circle(500, 18)
  237. t.seth(200)
  238. t.fd(10)
  239. t.seth(280)
  240. t.fd(7)
  241. t.seth(210)
  242. t.fd(10)
  243. t.seth(300)
  244. t.circle(10, 80)
  245. t.seth(220)
  246. t.fd(10)
  247. t.seth(300)
  248. t.circle(10, 80)
  249. t.seth(240)
  250. t.fd(12)
  251. t.seth(0)
  252. t.fd(13)
  253. t.seth(240)
  254. t.circle(10, 70)
  255. t.seth(10)
  256. t.circle(10, 70)
  257. t.seth(10)
  258. t.circle(300, 18)
  259.  
  260. t.seth(75)
  261. t.circle(500, 8)
  262. t.left(180)
  263. t.circle(-500, 15)
  264. t.seth(250)
  265. t.circle(100, 65)
  266.  
  267. #
  268. t.seth(320)
  269. t.circle(100, 5)
  270. t.left(180)
  271. t.circle(-100, 5)
  272. t.seth(220)
  273. t.circle(200, 20)
  274. t.circle(20, 70)
  275.  
  276. t.seth(60)
  277. t.circle(-100, 20)
  278. t.left(180)
  279. t.circle(100, 20)
  280. t.seth(300)
  281. t.circle(10, 70)
  282.  
  283. t.seth(60)
  284. t.circle(-100, 20)
  285. t.left(180)
  286. t.circle(100, 20)
  287. t.seth(10)
  288. t.circle(100, 60)
  289.  
  290. #
  291. t.seth(180)
  292. t.circle(-100, 10)
  293. t.left(180)
  294. t.circle(100, 10)
  295. t.seth(5)
  296. t.circle(100, 10)
  297. t.circle(-100, 40)
  298. t.circle(100, 35)
  299. t.left(180)
  300. t.circle(-100, 10)
  301.  
  302. #
  303. t.seth(290)
  304. t.circle(100, 55)
  305. t.circle(10, 50)
  306.  
  307. t.seth(120)
  308. t.circle(100, 20)
  309. t.left(180)
  310. t.circle(-100, 20)
  311.  
  312. t.seth(0)
  313. t.circle(10, 50)
  314.  
  315. t.seth(110)
  316. t.circle(100, 20)
  317. t.left(180)
  318. t.circle(-100, 20)
  319.  
  320. t.seth(30)
  321. t.circle(20, 50)
  322.  
  323. t.seth(100)
  324. t.circle(100, 40)
  325.  
  326. #
  327. t.seth(200)
  328. t.circle(-100, 5)
  329. t.left(180)
  330. t.circle(100, 5)
  331. t.left(30)
  332. t.circle(100, 75)
  333. t.right(15)
  334. t.circle(-300, 21)
  335. t.left(180)
  336. t.circle(300, 3)
  337.  
  338. #
  339. t.seth(43)
  340. t.circle(200, 60)
  341.  
  342. t.right(10)
  343. t.fd(10)
  344.  
  345. t.circle(5, 160)
  346. t.seth(90)
  347. t.circle(5, 160)
  348. t.seth(90)
  349.  
  350. t.fd(10)
  351. t.seth(90)
  352. t.circle(5, 180)
  353. t.fd(10)
  354.  
  355. t.left(180)
  356. t.left(20)
  357. t.fd(10)
  358. t.circle(5, 170)
  359. t.fd(10)
  360. t.seth(240)
  361. t.circle(50, 30)
  362.  
  363. t.end_fill()
  364. self.meme(130, 125)
  365. t.seth(-20)
  366. t.fd(5)
  367. t.circle(-5, 160)
  368. t.fd(5)
  369.  
  370. #
  371. self.meme(166, 130)
  372. t.seth(-90)
  373. t.fd(3)
  374. t.circle(-4, 180)
  375. t.fd(3)
  376. t.seth(-90)
  377. t.fd(3)
  378. t.circle(-4, 180)
  379. t.fd(3)
  380.  
  381. #
  382. self.meme(168, 134)
  383. t.fillcolor('#F6D02F')
  384. t.begin_fill()
  385. t.seth(40)
  386. t.fd(200)
  387. t.seth(-80)
  388. t.fd(150)
  389. t.seth(210)
  390. t.fd(150)
  391. t.left(90)
  392. t.fd(100)
  393. t.right(95)
  394. t.fd(100)
  395. t.left(110)
  396. t.fd(70)
  397. t.right(110)
  398. t.fd(80)
  399. t.left(110)
  400. t.fd(30)
  401. t.right(110)
  402. t.fd(32)
  403.  
  404. t.right(106)
  405. t.circle(100, 25)
  406. t.right(15)
  407. t.circle(-300, 2)
  408. ##############
  409. # print(t.pos())
  410. t.seth(30)
  411. t.fd(40)
  412. t.left(100)
  413. t.fd(70)
  414. t.right(100)
  415. t.fd(80)
  416. t.left(100)
  417. t.fd(46)
  418. t.seth(66)
  419. t.circle(200, 38)
  420. t.right(10)
  421. t.fd(10)
  422. t.end_fill()
  423.  
  424. #
  425. t.fillcolor('#923E24')
  426. self.meme(126.82, -156.84)
  427. t.begin_fill()
  428.  
  429. t.seth(30)
  430. t.fd(40)
  431. t.left(100)
  432. t.fd(40)
  433. t.pencolor('#923e24')
  434. t.seth(-30)
  435. t.fd(30)
  436. t.left(140)
  437. t.fd(20)
  438. t.right(150)
  439. t.fd(20)
  440. t.left(150)
  441. t.fd(20)
  442. t.right(150)
  443. t.fd(20)
  444. t.left(130)
  445. t.fd(18)
  446. t.pencolor('#000000')
  447. t.seth(-45)
  448. t.fd(67)
  449. t.right(110)
  450. t.fd(80)
  451. t.left(110)
  452. t.fd(30)
  453. t.right(110)
  454. t.fd(32)
  455. t.right(106)
  456. t.circle(100, 25)
  457. t.right(15)
  458. t.circle(-300, 2)
  459. t.end_fill()
  460.  
  461. self.topi(-134.07, 147.81)
  462. self.mukh(-5, 25)
  463. self.gaala1(-126, 32)
  464. self.gaala2(107, 63)
  465. self.kaan1(-250, 100)
  466. self.kaan2(140, 270)
  467. self.aankha1(-85, 90)
  468. self.aankha2(50, 110)
  469. t.hideturtle()
  470.  
  471. def topi(self, x, y):
  472. self.meme(x, y)
  473. t = self.t
  474. t.fillcolor('#CD0000')
  475. t.begin_fill()
  476. t.seth(200)
  477. t.circle(400, 7)
  478. t.left(180)
  479. t.circle(-400, 30)
  480. t.circle(30, 60)
  481. t.fd(50)
  482. t.circle(30, 45)
  483. t.fd(60)
  484. t.left(5)
  485. t.circle(30, 70)
  486. t.right(20)
  487. t.circle(200, 70)
  488. t.circle(30, 60)
  489. t.fd(70)
  490. # print(t.pos())
  491. t.right(35)
  492. t.fd(50)
  493. t.circle(8, 100)
  494. t.end_fill()
  495. self.meme(-168.47, 185.52)
  496. t.seth(36)
  497. t.circle(-270, 54)
  498. t.left(180)
  499. t.circle(270, 27)
  500. t.circle(-80, 98)
  501.  
  502. t.fillcolor('#444444')
  503. t.begin_fill()
  504. t.left(180)
  505. t.circle(80, 197)
  506. t.left(58)
  507. t.circle(200, 45)
  508. t.end_fill()
  509.  
  510. self.meme(-58, 270)
  511. t.pencolor('#228B22')
  512. t.dot(35)
  513.  
  514. self.meme(-30, 280)
  515. t.fillcolor('#228B22')
  516. t.begin_fill()
  517. t.seth(100)
  518. t.circle(30, 180)
  519. t.seth(190)
  520. t.fd(15)
  521. t.seth(100)
  522. t.circle(-45, 180)
  523. t.right(90)
  524. t.fd(15)
  525. t.end_fill()
  526. t.pencolor('#000000')
  527.  
  528. def start(self):
  529. self.jiu()
  530.  
  531.  
  532. def main():
  533. print('Painting the Cartoon... ')
  534. turtle.screensize(800, 600)
  535. turtle.title('Cartoon')
  536. cartoon = Cartoon()
  537. cartoon.start()
  538. turtle.mainloop()
  539.  
  540. if __name__ == '__main__':
  541. main()
  542.  
Success #stdin #stdout 0.02s 25396KB
stdin
Standard input is empty
stdout
import turtle


def gajurel(x, y):
    turtle.setx(x)
    turtle.sety(y)
    print(x, y)


class Cartoon:

    def __init__(self):
        self.t = turtle.Turtle()
        t = self.t
        t.pensize(3)
        t.speed(9)
        t.ondrag(gajurel)

    def meme(self, x, y):
        self.t.penup()
        self.t.goto(x, y)
        self.t.pendown()

    def aankha1(self, x, y):
        self.meme(x, y)
        t = self.t
        t.seth(0)
        t.fillcolor('#333333')
        t.begin_fill()
        t.circle(22)
        t.end_fill()

        self.meme(x, y + 10)
        t.fillcolor('#000000')
        t.begin_fill()
        t.circle(10)
        t.end_fill()

        self.meme(x + 6, y + 22)
        t.fillcolor('#ffffff')
        t.begin_fill()
        t.circle(10)
        t.end_fill()

    def aankha2(self, x, y):
        self.meme(x, y)
        t = self.t
        t.seth(0)
        t.fillcolor('#333333')
        t.begin_fill()
        t.circle(22)
        t.end_fill()

        self.meme(x, y + 10)
        t.fillcolor('#000000')
        t.begin_fill()
        t.circle(10)
        t.end_fill()

        self.meme(x - 6, y + 22)
        t.fillcolor('#ffffff')
        t.begin_fill()
        t.circle(10)
        t.end_fill()

    def mukh(self, x, y):
        self.meme(x, y)
        t = self.t

        t.fillcolor('#88141D')
        t.begin_fill()
        #
        l1 = []
        l2 = []
        t.seth(190)
        a = 0.7
        for i in range(28):
            a += 0.1
            t.right(3)
            t.fd(a)
            l1.append(t.position())

        self.meme(x, y)

        t.seth(10)
        a = 0.7
        for i in range(28):
            a += 0.1
            t.left(3)
            t.fd(a)
            l2.append(t.position())

        #

        t.seth(10)
        t.circle(50, 15)
        t.left(180)
        t.circle(-50, 15)

        t.circle(-50, 40)
        t.seth(233)
        t.circle(-50, 55)
        t.left(180)
        t.circle(50, 12.1)
        t.end_fill()

        #
        self.meme(17, 54)
        t.fillcolor('#DD716F')
        t.begin_fill()
        t.seth(145)
        t.circle(40, 86)
        t.penup()
        for pos in reversed(l1[:20]):
            t.goto(pos[0], pos[1] + 1.5)
        for pos in l2[:20]:
            t.goto(pos[0], pos[1] + 1.5)
        t.pendown()
        t.end_fill()

        #
        self.meme(-17, 94)
        t.seth(8)
        t.fd(4)
        t.back(8)

    #
    def gaala1(self, x, y):
        turtle.tracer(False)
        t = self.t
        self.meme(x, y)
        t.seth(300)
        t.fillcolor('#DD4D28')
        t.begin_fill()
        a = 2.3
        for i in range(120):
            if 0 <= i < 30 or 60 <= i < 90:
                a -= 0.05
                t.lt(3)
                t.fd(a)
            else:
                a += 0.05
                t.lt(3)
                t.fd(a)
        t.end_fill()
        turtle.tracer(True)

    def gaala2(self, x, y):
        t = self.t
        turtle.tracer(False)
        self.meme(x, y)
        t.seth(60)
        t.fillcolor('#DD4D28')
        t.begin_fill()
        a = 2.3
        for i in range(120):
            if 0 <= i < 30 or 60 <= i < 90:
                a -= 0.05
                t.lt(3)
                t.fd(a)
            else:
                a += 0.05
                t.lt(3)
                t.fd(a)
        t.end_fill()
        turtle.tracer(True)

    def kaan1(self, x, y):
        t = self.t
        self.meme(x, y)
        t.fillcolor('#000000')
        t.begin_fill()
        t.seth(330)
        t.circle(100, 35)
        t.seth(219)
        t.circle(-300, 19)
        t.seth(110)
        t.circle(-30, 50)
        t.circle(-300, 10)
        t.end_fill()

    def kaan2(self, x, y):
        t = self.t
        self.meme(x, y)
        t.fillcolor('#000000')
        t.begin_fill()
        t.seth(300)
        t.circle(-100, 30)
        t.seth(35)
        t.circle(300, 15)
        t.circle(30, 50)
        t.seth(190)
        t.circle(300, 17)
        t.end_fill()

    def jiu(self):
        t = self.t

        t.fillcolor('#F6D02F')
        t.begin_fill()
        #
        t.penup()
        t.circle(130, 40)
        t.pendown()
        t.circle(100, 105)
        t.left(180)
        t.circle(-100, 5)

        #
        t.seth(20)
        t.circle(300, 30)
        t.circle(30, 50)
        t.seth(190)
        t.circle(300, 36)

        #
        t.seth(150)
        t.circle(150, 70)

        #
        t.seth(200)
        t.circle(300, 40)
        t.circle(30, 50)
        t.seth(20)
        t.circle(300, 35)
        # print(t.pos())

        #
        t.seth(240)
        t.circle(105, 95)
        t.left(180)
        t.circle(-105, 5)

        #
        t.seth(210)
        t.circle(500, 18)
        t.seth(200)
        t.fd(10)
        t.seth(280)
        t.fd(7)
        t.seth(210)
        t.fd(10)
        t.seth(300)
        t.circle(10, 80)
        t.seth(220)
        t.fd(10)
        t.seth(300)
        t.circle(10, 80)
        t.seth(240)
        t.fd(12)
        t.seth(0)
        t.fd(13)
        t.seth(240)
        t.circle(10, 70)
        t.seth(10)
        t.circle(10, 70)
        t.seth(10)
        t.circle(300, 18)

        t.seth(75)
        t.circle(500, 8)
        t.left(180)
        t.circle(-500, 15)
        t.seth(250)
        t.circle(100, 65)

        #
        t.seth(320)
        t.circle(100, 5)
        t.left(180)
        t.circle(-100, 5)
        t.seth(220)
        t.circle(200, 20)
        t.circle(20, 70)

        t.seth(60)
        t.circle(-100, 20)
        t.left(180)
        t.circle(100, 20)
        t.seth(300)
        t.circle(10, 70)

        t.seth(60)
        t.circle(-100, 20)
        t.left(180)
        t.circle(100, 20)
        t.seth(10)
        t.circle(100, 60)

        #
        t.seth(180)
        t.circle(-100, 10)
        t.left(180)
        t.circle(100, 10)
        t.seth(5)
        t.circle(100, 10)
        t.circle(-100, 40)
        t.circle(100, 35)
        t.left(180)
        t.circle(-100, 10)

        #
        t.seth(290)
        t.circle(100, 55)
        t.circle(10, 50)

        t.seth(120)
        t.circle(100, 20)
        t.left(180)
        t.circle(-100, 20)

        t.seth(0)
        t.circle(10, 50)

        t.seth(110)
        t.circle(100, 20)
        t.left(180)
        t.circle(-100, 20)

        t.seth(30)
        t.circle(20, 50)

        t.seth(100)
        t.circle(100, 40)

        #
        t.seth(200)
        t.circle(-100, 5)
        t.left(180)
        t.circle(100, 5)
        t.left(30)
        t.circle(100, 75)
        t.right(15)
        t.circle(-300, 21)
        t.left(180)
        t.circle(300, 3)

        #
        t.seth(43)
        t.circle(200, 60)

        t.right(10)
        t.fd(10)

        t.circle(5, 160)
        t.seth(90)
        t.circle(5, 160)
        t.seth(90)

        t.fd(10)
        t.seth(90)
        t.circle(5, 180)
        t.fd(10)

        t.left(180)
        t.left(20)
        t.fd(10)
        t.circle(5, 170)
        t.fd(10)
        t.seth(240)
        t.circle(50, 30)

        t.end_fill()
        self.meme(130, 125)
        t.seth(-20)
        t.fd(5)
        t.circle(-5, 160)
        t.fd(5)

        #
        self.meme(166, 130)
        t.seth(-90)
        t.fd(3)
        t.circle(-4, 180)
        t.fd(3)
        t.seth(-90)
        t.fd(3)
        t.circle(-4, 180)
        t.fd(3)

        #
        self.meme(168, 134)
        t.fillcolor('#F6D02F')
        t.begin_fill()
        t.seth(40)
        t.fd(200)
        t.seth(-80)
        t.fd(150)
        t.seth(210)
        t.fd(150)
        t.left(90)
        t.fd(100)
        t.right(95)
        t.fd(100)
        t.left(110)
        t.fd(70)
        t.right(110)
        t.fd(80)
        t.left(110)
        t.fd(30)
        t.right(110)
        t.fd(32)

        t.right(106)
        t.circle(100, 25)
        t.right(15)
        t.circle(-300, 2)
        ##############
        # print(t.pos())
        t.seth(30)
        t.fd(40)
        t.left(100)
        t.fd(70)
        t.right(100)
        t.fd(80)
        t.left(100)
        t.fd(46)
        t.seth(66)
        t.circle(200, 38)
        t.right(10)
        t.fd(10)
        t.end_fill()

        #
        t.fillcolor('#923E24')
        self.meme(126.82, -156.84)
        t.begin_fill()

        t.seth(30)
        t.fd(40)
        t.left(100)
        t.fd(40)
        t.pencolor('#923e24')
        t.seth(-30)
        t.fd(30)
        t.left(140)
        t.fd(20)
        t.right(150)
        t.fd(20)
        t.left(150)
        t.fd(20)
        t.right(150)
        t.fd(20)
        t.left(130)
        t.fd(18)
        t.pencolor('#000000')
        t.seth(-45)
        t.fd(67)
        t.right(110)
        t.fd(80)
        t.left(110)
        t.fd(30)
        t.right(110)
        t.fd(32)
        t.right(106)
        t.circle(100, 25)
        t.right(15)
        t.circle(-300, 2)
        t.end_fill()

        self.topi(-134.07, 147.81)
        self.mukh(-5, 25)
        self.gaala1(-126, 32)
        self.gaala2(107, 63)
        self.kaan1(-250, 100)
        self.kaan2(140, 270)
        self.aankha1(-85, 90)
        self.aankha2(50, 110)
        t.hideturtle()

    def topi(self, x, y):
        self.meme(x, y)
        t = self.t
        t.fillcolor('#CD0000')
        t.begin_fill()
        t.seth(200)
        t.circle(400, 7)
        t.left(180)
        t.circle(-400, 30)
        t.circle(30, 60)
        t.fd(50)
        t.circle(30, 45)
        t.fd(60)
        t.left(5)
        t.circle(30, 70)
        t.right(20)
        t.circle(200, 70)
        t.circle(30, 60)
        t.fd(70)
        # print(t.pos())
        t.right(35)
        t.fd(50)
        t.circle(8, 100)
        t.end_fill()
        self.meme(-168.47, 185.52)
        t.seth(36)
        t.circle(-270, 54)
        t.left(180)
        t.circle(270, 27)
        t.circle(-80, 98)

        t.fillcolor('#444444')
        t.begin_fill()
        t.left(180)
        t.circle(80, 197)
        t.left(58)
        t.circle(200, 45)
        t.end_fill()

        self.meme(-58, 270)
        t.pencolor('#228B22')
        t.dot(35)

        self.meme(-30, 280)
        t.fillcolor('#228B22')
        t.begin_fill()
        t.seth(100)
        t.circle(30, 180)
        t.seth(190)
        t.fd(15)
        t.seth(100)
        t.circle(-45, 180)
        t.right(90)
        t.fd(15)
        t.end_fill()
        t.pencolor('#000000')

    def start(self):
        self.jiu()


def main():
    print('Painting the Cartoon... ')
    turtle.screensize(800, 600)
    turtle.title('Cartoon')
    cartoon = Cartoon()
    cartoon.start()
    turtle.mainloop()

if __name__ == '__main__':
    main()