{"id":17711,"date":"2019-07-12T16:32:18","date_gmt":"2019-07-12T14:32:18","guid":{"rendered":"http:\/\/www.valcon.it\/librelogo\/?p=17711"},"modified":"2025-07-22T20:31:51","modified_gmt":"2025-07-22T18:31:51","slug":"curva-di-peano-1","status":"publish","type":"post","link":"https:\/\/www.valcon.it\/librelogo\/curva-di-peano-1\/","title":{"rendered":"Curva di Peano &#8211; 1"},"content":{"rendered":"\n<p>Nome generico per le curve che riempiono il piano.<\/p>\n\n\n\n<p>Dimensione=300, n=1, 2, 3<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/peano1-1.svg\" alt=\"\" class=\"wp-image-17979\"\/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/peano1-2.svg\" alt=\"\" class=\"wp-image-17980\"\/><\/figure><\/div>\n\n\n<p><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/peano1-3.svg\" alt=\"\" class=\"wp-image-17981\"\/><\/figure><\/div>\n\n\n<p>Dimensione=400, n=4<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/peano1-4.svg\" alt=\"\" class=\"wp-image-17983\"\/><\/figure><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\ndimensione = 400\nricorsione=4\nGLOBAL d\n;-----------------------------------------------------------------------------------------------\nTO peano n\n    GLOBAL d\n    IF n==1 &#x5B;\n        FORWARD d&#x5B;n]\n    ] &#x5B;\n        peano(n-1)\n        peano(n-1) LEFT 90\n        peano(n-1) LEFT 90\n        peano(n-1) LEFT 90\n        peano(n-1)\n        peano(n-1) LEFT 90\n        peano(n-1) LEFT 90\n        peano(n-1) RIGHT 90\n        peano(n-1)\n   ]\nEND\n;-------------------------------------------------------------------------------------------------\nCLEARSCREEN \nHOME \nHIDETURTLE\nPENSIZE 1 \nPENCOLOR \u201cblue\u201d\n\nd=(ricorsione+1)*&#x5B;0]\nd&#x5B;ricorsione]=dimensione\nFOR i IN RANGE ricorsione-1 0 -1 &#x5B; \n     d&#x5B;i]=d&#x5B;i+1]\/3 \n]\n\nRIGHT 90\npeano(ricorsione)\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Nome generico per le curve che riempiono il piano. Dimensione=300, n=1, 2, 3 Dimensione=400, n=4<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"off","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[6],"tags":[7],"class_list":["post-17711","post","type-post","status-publish","format-standard","hentry","category-applicazioni","tag-ricorsione"],"_links":{"self":[{"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/posts\/17711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/comments?post=17711"}],"version-history":[{"count":36,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/posts\/17711\/revisions"}],"predecessor-version":[{"id":20190,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/posts\/17711\/revisions\/20190"}],"wp:attachment":[{"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/media?parent=17711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/categories?post=17711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/tags?post=17711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}