{"id":18133,"date":"2019-07-28T21:16:14","date_gmt":"2019-07-28T19:16:14","guid":{"rendered":"http:\/\/www.valcon.it\/librelogo\/?p=18133"},"modified":"2026-09-06T09:38:27","modified_gmt":"2026-09-06T07:38:27","slug":"illusioni-ottiche-1","status":"publish","type":"post","link":"https:\/\/www.valcon.it\/librelogo\/illusioni-ottiche-1\/","title":{"rendered":"Illusioni ottiche &#8211; 1"},"content":{"rendered":"\n<p><em>Ricostruisco alcune immagini presenti nella galleria <a href=\"https:\/\/commons.wikimedia.org\/wiki\/Category:Optical_illusions\">Wikipedia > Optical illusions<\/a><\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p>La realizzazione delle figure animate richiede l&#8217;uso delle funzioni <strong>PICTURE<\/strong>&nbsp;e <strong>SLEEP<\/strong>.<br>Il tono di grigio appare <em>pi\u00f9 chiaro<\/em> o <em>pi\u00f9 scuro<\/em> in funzione della tonalit\u00e0 che lo circonda.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Esercizio 1<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/simultaneous_contrast-1.svg\" alt=\"\" class=\"wp-image-18167\"\/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Esercizio 2<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/simultaneous_contrast-2.svg\" alt=\"\" class=\"wp-image-18168\"\/><\/figure><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nCLEARSCREEN \nHOME \nHIDETURTLE \nPENUP\n\nx=POSITION&#x5B;0]\ny=POSITION&#x5B;0]\n\na=250\na2=a\/2\na4=a\/4\na6=a\/6\n\nFILLCOLOR \u201cblack\u201d  POSITION &#x5B;x-a4,y]  HEADING 0  SQUARE a2\nFILLCOLOR \u201cwhite\u201d  POSITION &#x5B;x+a4,y]  HEADING 0  SQUARE a2 ; &quot;silver&quot;\nFILLCOLOR \u201cgray\u201d   POSITION &#x5B;x-a4,y]  HEADING 0  SQUARE a6\n                   POSITION &#x5B;x+a4,y]  HEADING 0  SQUARE a6\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Esercizio 3<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/gradient_illusion-1-1.svg\" alt=\"\" class=\"wp-image-18171\"\/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Esercizio 4<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/gradient_illusion-2-1.svg\" alt=\"\" class=\"wp-image-18172\"\/><\/figure><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nCLEARSCREEN \nHOME \nHIDETURTLE \nPENUP\n\nx=POSITION&#x5B;0]\ny=POSITION&#x5B;0]\n\na=250\na2=a\/2\na8=a\/8\n\nFILLCOLOR &#x5B;\u201cblack\u201d, \u201cwhite\u201d, 0, 90, 0]  RECTANGLE &#x5B;a, a2]    ; &quot;silver&quot;\nFILLCOLOR \u201cgray\u201d                        RECTANGLE &#x5B;a-a8, a8]\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Esercizio 5<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/benary-cross.svg\" alt=\"\" class=\"wp-image-18158\"\/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Esercizio 6<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/benary-cross-2.svg\" alt=\"\" class=\"wp-image-18161\"\/><\/figure><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nCLEARSCREEN \nHOME \nHIDETURTLE\n\na=250\nb=a\/3.5\nb2=b\/2\nz=b*SQRT(2)\/2\n\nx=POSITION&#x5B;0]\ny=POSITION&#x5B;1]\n \nPENUP\nFILLCOLOR \u201cgray\u201d                   ; \u201cblack\u201d\nRECTANGLE &#x5B;a, b]\nRECTANGLE &#x5B;b, a]\nPENCOLOR  \u201csilver\u201d                 ; i triangoli sono tutti uguali\nFILLCOLOR \u201csilver\u201d\nPOSITION &#x5B;x+b2,y-b2]    POINT\nPOSITION &#x5B;x+b2,y-b2-z]  POINT\nPOSITION &#x5B;x+b2+z,y-b2]  POINT FILL\nPOSITION &#x5B;x-b2,y-b2]    POINT\nPOSITION &#x5B;x-b2-b,y-b2]  POINT\nPOSITION &#x5B;x-b,y]        POINT FILL\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Esercizio 7<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/kiekko-0-1.svg\" alt=\"\" class=\"wp-image-18193\"\/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Esercizio 8<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/kiekko-0-2.svg\" alt=\"\" class=\"wp-image-18194\"\/><\/figure><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nCLEARSCREEN \nHOME \nHIDETURTLE \nPENUP\n\nx=POSITION&#x5B;0]\ny=POSITION&#x5B;1]\n\na=250\na2=a\/2\na4=a\/4\na6=a\/6\na8=a\/8\npicture &quot;ill_ott.svg&quot; &#x5B;\n    FILLCOLOR \u201cblack\u201d  POSITION &#x5B;x-a4, y]     HEADING 0  RECTANGLE &#x5B;a2, a]\n    FILLCOLOR \u201cwhite\u201d  POSITION &#x5B;x+a4, y]     HEADING 0  RECTANGLE &#x5B;a2, a]  ; &quot;silver&quot;\n    FILLCOLOR \u201cgray\u201d   POSITION &#x5B;x, y+a6]     HEADING 0  RECTANGLE &#x5B;a2, a2]\n    SLEEP 1000\n    FILLCOLOR \u201cwhite\u201d  POSITION &#x5B;x+a4, y]     HEADING 0  RECTANGLE &#x5B;a2, a]  ; &quot;silver&quot;\n    FILLCOLOR \u201cgray\u201d   POSITION &#x5B;x+a8, y-a6]  HEADING 0  RECTANGLE &#x5B;a4, a2]\n    SLEEP 1000\n]\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">Esercizio 9<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/kiekko-2.svg\" alt=\"\" class=\"wp-image-18164\"\/><\/figure><\/div>\n\n\n<h2 class=\"wp-block-heading\">Esercizio 10<\/h2>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/www.valcon.it\/librelogo\/wp-content\/uploads\/kiekko-1.svg\" alt=\"\" class=\"wp-image-18165\"\/><\/figure><\/div>\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: python; title: ; notranslate\" title=\"\">\nCLEARSCREEN \nHOME \nHIDETURTLE \nPENUP\n\nx=POSITION&#x5B;0]\ny=POSITION&#x5B;1]\n\na=250\na2=a\/2\na3=a\/3\na4=a\/4\na6=a\/6\n\npicture &quot;ill_ott.svg&quot; &#x5B;\n    FILLCOLOR \u201cblack\u201d  POSITION &#x5B;x-a4, y]  HEADING 0  RECTANGLE &#x5B;a2, a]\n    FILLCOLOR \u201cwhite\u201d  POSITION &#x5B;x+a4, y]  HEADING 0  RECTANGLE &#x5B;a2, a]             ; &quot;silver&quot;\n    FILLCOLOR \u201cgray\u201d   POSITION &#x5B;x, y+a6]  HEADING 0  ELLIPSE   &#x5B;a2+a6, a2]\n    FILLCOLOR \u201cblack\u201d  POSITION &#x5B;x, y+a6]  HEADING 0  ELLIPSE   &#x5B;a6,a6, 180,360]\n    FILLCOLOR \u201cwhite\u201d  POSITION &#x5B;x, y+a6]  HEADING 0  ELLIPSE   &#x5B;a6,a6, 0,180]      ; &quot;silver&quot;\n    SLEEP 1000\n    FILLCOLOR \u201cwhite\u201d  POSITION &#x5B;x+a4, y]  HEADING 0  RECTANGLE &#x5B;a2, a]             ; &quot;silver&quot;\n    FILLCOLOR \u201cgray\u201d   POSITION &#x5B;x, y-a6]  HEADING 0  ELLIPSE   &#x5B;a2+a6, a2, 0,180]\n    FILLCOLOR \u201cwhite\u201d  POSITION &#x5B;x, y-a6]  HEADING 0  ELLIPSE   &#x5B;a6,a6, 0,180]      ; &quot;silver&quot;\n    SLEEP 1000\n]\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>Ricostruisco alcune immagini presenti nella galleria Wikipedia > Optical illusions La realizzazione delle figure animate richiede l&#8217;uso delle funzioni PICTURE&nbsp;e SLEEP.Il tono di grigio appare pi\u00f9 chiaro o pi\u00f9 scuro in funzione della tonalit\u00e0 che lo circonda. Esercizio 1 Esercizio 2 Esercizio 3 Esercizio 4 Esercizio 5 Esercizio 6 Esercizio 7 Esercizio 8 Esercizio 9&hellip;&nbsp;<a href=\"https:\/\/www.valcon.it\/librelogo\/illusioni-ottiche-1\/\" class=\"\" rel=\"bookmark\">Leggi tutto &raquo;<span class=\"screen-reader-text\">Illusioni ottiche &#8211; 1<\/span><\/a><\/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":[],"class_list":["post-18133","post","type-post","status-publish","format-standard","hentry","category-applicazioni"],"_links":{"self":[{"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/posts\/18133","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=18133"}],"version-history":[{"count":49,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/posts\/18133\/revisions"}],"predecessor-version":[{"id":20315,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/posts\/18133\/revisions\/20315"}],"wp:attachment":[{"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/media?parent=18133"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/categories?post=18133"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.valcon.it\/librelogo\/wp-json\/wp\/v2\/tags?post=18133"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}