Guest User

Untitled

a guest
Apr 18th, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.34 KB | None | 0 0
  1. #!/usr/bin/python3
  2. from graph import *
  3.  
  4. width = 1024
  5. height = 400
  6. windowSize(width, height)
  7. canvasSize(width, height)
  8.  
  9. #небо
  10. penColor('#a1f5ff')
  11. brushColor('#a1f5ff')
  12. rectangle( 0, 0, 1024, 186 )
  13.  
  14. #море
  15. penColor('#4423df')
  16. brushColor('#4423df')
  17. rectangle( 0, 186, 1024, 280 )
  18.  
  19. #песок
  20. penColor('#eef60c')
  21. brushColor('#eef60c')
  22. rectangle( 0, 280, 1024, 400 )
  23.  
  24.  
  25. #палуба
  26. penColor('#000000')
  27. brushColor('#ba5005')
  28. rectangle( 404, 110, 410, 205 )
  29. rectangle( 321, 236, 351, 205 )
  30. polygon([( 494 , 236 ), ( 557 ,  205 ), ( 494 ,  205 )])
  31. rectangle( 351, 236, 494, 205 )
  32. penColor('#000000')
  33. brushColor('#ffffff')
  34. circle( 509, 216, 8 )
  35.  
  36. #мачта и паруса
  37. penColor('#000000')
  38. brushColor('#ded599')
  39. polygon( [(411, 110), (465, 157), (426, 157)] )
  40. polygon( [(411, 204), (465, 157), (426, 157)] )
  41.  
  42. #меньшие облака
  43. penColor('#000000')
  44. brushColor('#ffffff')
  45. circle( 100,  52 ,  15 )
  46. circle( 89,   67 ,  15 )
  47. circle( 122,  52 ,  15 )
  48. circle( 111,  67 ,  15 )
  49. circle( 145,  52 ,  15 )
  50. circle( 134,  67 ,  15 )
  51. circle( 156, 67 ,  15 )
  52.  
  53. #большие облака
  54. penColor('#000000')
  55. brushColor('#ffffff')
  56. circle( 286, 35 ,  25 )
  57. circle( 268, 60 ,  25 )
  58. circle( 324, 35 ,  25 )
  59. circle( 305, 60 ,  25 )
  60. circle( 361, 35 ,  25 )
  61. circle( 343, 60 ,  25 )
  62. circle( 380, 60 ,  25 )
  63.  
  64. run()
Advertisement
Add Comment
Please, Sign In to add comment