{"id":2973,"date":"2025-12-02T10:13:35","date_gmt":"2025-12-02T09:13:35","guid":{"rendered":"https:\/\/labodemaths.fr\/WordPress3\/?p=2973"},"modified":"2025-12-05T11:41:52","modified_gmt":"2025-12-05T10:41:52","slug":"turtle-mettre-de-la-couleur-rvb","status":"publish","type":"post","link":"https:\/\/labodemaths.fr\/WordPress3\/turtle-mettre-de-la-couleur-rvb\/","title":{"rendered":"Turtle : mettre de la couleur RVB"},"content":{"rendered":"\n<p>On consid\u00e8re le code python suivant :<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>from turtle import *\ncolormode(255)\ncouleur_crayon=(0,0,0)\ncouleur_peinture=(255,255,255)\npensize(1)\ncolor(couleur_crayon, couleur_peinture)\n\n\ndef losange():\n    begin_fill()\n    for i in range(2):\n        forward(100)\n        left(72)\n        forward(100)\n        left(108)\n    end_fill()\n<\/code><\/pre>\n\n\n\n<p>Ajouter une fonction etoile() permettant d&rsquo;obtenir le r\u00e9sultat suivant<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.07.15.png\"><img loading=\"lazy\" width=\"726\" height=\"904\" src=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.07.15.png\" alt=\"\" class=\"wp-image-2974\" srcset=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.07.15.png 726w, https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.07.15-241x300.png 241w\" sizes=\"(max-width: 726px) 100vw, 726px\" \/><\/a><\/figure>\n\n\n\n<p>Modifier le programme pour obtenir les r\u00e9sultats suivants :<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.10.14.png\"><img loading=\"lazy\" width=\"726\" height=\"692\" src=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.10.14.png\" alt=\"\" class=\"wp-image-2975\" srcset=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.10.14.png 726w, https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.10.14-300x286.png 300w\" sizes=\"(max-width: 726px) 100vw, 726px\" \/><\/a><figcaption>etoile 1<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.10.55.png\"><img loading=\"lazy\" width=\"726\" height=\"692\" src=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.10.55.png\" alt=\"\" class=\"wp-image-2976\" srcset=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.10.55.png 726w, https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.10.55-300x286.png 300w\" sizes=\"(max-width: 726px) 100vw, 726px\" \/><\/a><figcaption>etoile2<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.12.02.png\"><img loading=\"lazy\" width=\"726\" height=\"692\" src=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.12.02.png\" alt=\"\" class=\"wp-image-2977\" srcset=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.12.02.png 726w, https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.12.02-300x286.png 300w\" sizes=\"(max-width: 726px) 100vw, 726px\" \/><\/a><figcaption>etoile 3<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.13.13.png\"><img loading=\"lazy\" width=\"726\" height=\"692\" src=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.13.13.png\" alt=\"\" class=\"wp-image-2978\" srcset=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.13.13.png 726w, https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-02-a\u0300-10.13.13-300x286.png 300w\" sizes=\"(max-width: 726px) 100vw, 726px\" \/><\/a><figcaption>etoile 4<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-05-a\u0300-11.40.49.png\"><img loading=\"lazy\" width=\"720\" height=\"670\" src=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-05-a\u0300-11.40.49.png\" alt=\"\" class=\"wp-image-2981\" srcset=\"https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-05-a\u0300-11.40.49.png 720w, https:\/\/labodemaths.fr\/WordPress3\/wp-content\/uploads\/2025\/12\/Capture-de\u0301cran-2025-12-05-a\u0300-11.40.49-300x279.png 300w\" sizes=\"(max-width: 720px) 100vw, 720px\" \/><\/a><figcaption>etoile 5<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>On consid\u00e8re le code python suivant : Ajouter une fonction etoile() permettant d&rsquo;obtenir le r\u00e9sultat&#8230;<\/p>\n<div class=\"more-link-wrapper\"><a class=\"more-link\" href=\"https:\/\/labodemaths.fr\/WordPress3\/turtle-mettre-de-la-couleur-rvb\/\">Read the post<span class=\"screen-reader-text\">Turtle : mettre de la couleur RVB<\/span><\/a><\/div>\n","protected":false},"author":2,"featured_media":2977,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[56],"tags":[],"_links":{"self":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/2973"}],"collection":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/comments?post=2973"}],"version-history":[{"count":2,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/2973\/revisions"}],"predecessor-version":[{"id":2982,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/posts\/2973\/revisions\/2982"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media\/2977"}],"wp:attachment":[{"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/media?parent=2973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/categories?post=2973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/labodemaths.fr\/WordPress3\/wp-json\/wp\/v2\/tags?post=2973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}