{"id":321,"date":"2021-11-27T19:11:36","date_gmt":"2021-11-27T18:11:36","guid":{"rendered":"http:\/\/yb-isn.fr\/2021\/nsi\/?p=321"},"modified":"2021-12-05T17:15:59","modified_gmt":"2021-12-05T16:15:59","slug":"visualisation-avec-pygame","status":"publish","type":"post","link":"http:\/\/yb-isn.fr\/2021\/nsi\/?p=321","title":{"rendered":"Visualisation avec pygame"},"content":{"rendered":"\n<p>Activit\u00e9 optionnelle<\/p>\n\n\n\n<p><a href=\"https:\/\/pub.phyks.me\/sdz\/sdztutoriel 1\">tutoriel 1<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/zestedesavoir.com\/tutoriels\/846\/pygame-pour-les-zesteurs\/\">tutoriel 2<\/a><\/p>\n\n\n\n<p>mon premier programme pygame \u00e0 tester<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"python\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">import pygame\n\nrouge=(255,0,0)\nvert=(0,255,0)\ngris=(100,100,100)\n\npygame.init()\nscreen = pygame.display.set_mode((640,480))\nscreen.fill(gris)\n\npygame.draw.rect(screen,rouge,(320,240,40,40))\npygame.draw.polygon(screen,vert, ( (320,240),(340,220),(360,240)))\n                                            \npygame.display.flip()\n\ncontinuer= True\nwhile continuer:\n    for event in pygame.event.get():\n        if event.type == pygame.QUIT:\n            continuer= False            \npygame.quit()<\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"944\" height=\"103\" src=\"http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-10.png\" alt=\"\" class=\"wp-image-332\" srcset=\"http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-10.png 944w, http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-10-300x33.png 300w, http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-10-768x84.png 768w\" sizes=\"(max-width: 944px) 100vw, 944px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"924\" height=\"506\" src=\"http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-11.png\" alt=\"\" class=\"wp-image-334\" srcset=\"http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-11.png 924w, http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-11-300x164.png 300w, http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-11-768x421.png 768w\" sizes=\"(max-width: 924px) 100vw, 924px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" src=\"http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-12.png\" alt=\"\" class=\"wp-image-335\" width=\"848\" height=\"436\" srcset=\"http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-12.png 898w, http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-12-300x154.png 300w, http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-12-768x395.png 768w\" sizes=\"(max-width: 848px) 100vw, 848px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"855\" height=\"218\" src=\"http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-13.png\" alt=\"\" class=\"wp-image-336\" srcset=\"http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-13.png 855w, http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-13-300x76.png 300w, http:\/\/yb-isn.fr\/2021\/nsi\/wp-content\/uploads\/2021\/11\/image-13-768x196.png 768w\" sizes=\"(max-width: 855px) 100vw, 855px\" \/><\/figure>\n\n\n\n<p>cor<a href=\"http:\/\/yb-isn.fr\/plssc.7z\">rection<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Activit\u00e9 optionnelle tutoriel 1 tutoriel 2 mon premier programme pygame \u00e0 tester correction<\/p>\n","protected":false},"author":1,"featured_media":326,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/index.php?rest_route=\/wp\/v2\/posts\/321"}],"collection":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=321"}],"version-history":[{"count":9,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/index.php?rest_route=\/wp\/v2\/posts\/321\/revisions"}],"predecessor-version":[{"id":854,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/index.php?rest_route=\/wp\/v2\/posts\/321\/revisions\/854"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/index.php?rest_route=\/wp\/v2\/media\/326"}],"wp:attachment":[{"href":"http:\/\/yb-isn.fr\/2021\/nsi\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=321"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=321"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yb-isn.fr\/2021\/nsi\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=321"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}