{"id":581,"date":"2023-03-07T09:16:59","date_gmt":"2023-03-07T09:16:59","guid":{"rendered":"https:\/\/djoko.nl\/home6\/?p=581"},"modified":"2023-03-07T10:18:15","modified_gmt":"2023-03-07T10:18:15","slug":"van-schets-naar-recht","status":"publish","type":"post","link":"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/","title":{"rendered":"Van schets naar recht"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Een eenvoudige uitdaging: kan ik een slordige lijn tekenen op een canvas in html die daarna vanzelf een rechte lijn wordt? Hieronder staat een eerste  versie met behulp van de P5-bibliotheek. Voor mobiele devices (jouw telefoon dus): <a href=\"https:\/\/djoko.nl\/home6\/js\/rechtelijn_v1c.html\" target=\"_blank\" rel=\"noreferrer noopener\">klik hier<\/a>.<\/p>\n\n\n\n<iframe style=\"height: 240px; border: 0px solid;overflow: hidden;\" src=\"https:\/\/djoko.nl\/home6\/js\/rechtelijn_v1c.html\"><\/iframe>\n\n\n\n<p class=\"wp-block-paragraph\">De broncode voor deze eerste versie vind je <a href=\"https:\/\/djoko.nl\/home6\/js\/rechtelijn_v1c.zip\">hier<\/a>. Er volgt nog een uitbreiding naar het herkennen van gebogen curves en, hopelijk, een vereenvoudiging naar bijv. een rechthoek.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Een eenvoudige uitdaging: kan ik een slordige lijn tekenen op een canvas in html die daarna vanzelf een rechte lijn wordt? Hieronder staat een eerste versie met behulp van de P5-bibliotheek. Voor mobiele devices (jouw telefoon dus): klik hier. De broncode voor deze eerste versie vind je hier. Er volgt nog een uitbreiding naar het [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"class_list":["post-581","post","type-post","status-publish","format-standard","hentry","category-programmeren"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Van schets naar recht - djoko<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Van schets naar recht - djoko\" \/>\n<meta property=\"og:description\" content=\"Een eenvoudige uitdaging: kan ik een slordige lijn tekenen op een canvas in html die daarna vanzelf een rechte lijn wordt? Hieronder staat een eerste versie met behulp van de P5-bibliotheek. Voor mobiele devices (jouw telefoon dus): klik hier. De broncode voor deze eerste versie vind je hier. Er volgt nog een uitbreiding naar het [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/\" \/>\n<meta property=\"og:site_name\" content=\"djoko\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-07T09:16:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-07T10:18:15+00:00\" \/>\n<meta name=\"author\" content=\"Jean-Fran\u00e7ois Roebers\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Geschreven door\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jean-Fran\u00e7ois Roebers\" \/>\n\t<meta name=\"twitter:label2\" content=\"Geschatte leestijd\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minuut\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/\"},\"author\":{\"name\":\"Jean-Fran\u00e7ois Roebers\",\"@id\":\"https:\/\/djoko.nl\/home6\/#\/schema\/person\/f3d259e86ce771777335741dba143a1c\"},\"headline\":\"Van schets naar recht\",\"datePublished\":\"2023-03-07T09:16:59+00:00\",\"dateModified\":\"2023-03-07T10:18:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/\"},\"wordCount\":72,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/djoko.nl\/home6\/#\/schema\/person\/f3d259e86ce771777335741dba143a1c\"},\"articleSection\":[\"programmeren\"],\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/\",\"url\":\"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/\",\"name\":\"Van schets naar recht - djoko\",\"isPartOf\":{\"@id\":\"https:\/\/djoko.nl\/home6\/#website\"},\"datePublished\":\"2023-03-07T09:16:59+00:00\",\"dateModified\":\"2023-03-07T10:18:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/djoko.nl\/home6\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Van schets naar recht\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/djoko.nl\/home6\/#website\",\"url\":\"https:\/\/djoko.nl\/home6\/\",\"name\":\"djoko\",\"description\":\"reflectie op creatie van beeld, woord en muziek\",\"publisher\":{\"@id\":\"https:\/\/djoko.nl\/home6\/#\/schema\/person\/f3d259e86ce771777335741dba143a1c\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/djoko.nl\/home6\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/djoko.nl\/home6\/#\/schema\/person\/f3d259e86ce771777335741dba143a1c\",\"name\":\"Jean-Fran\u00e7ois Roebers\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"nl-NL\",\"@id\":\"https:\/\/djoko.nl\/home6\/wp-content\/uploads\/2025\/09\/djoko_logo.jpg\",\"url\":\"https:\/\/djoko.nl\/home6\/wp-content\/uploads\/2025\/09\/djoko_logo.jpg\",\"contentUrl\":\"https:\/\/djoko.nl\/home6\/wp-content\/uploads\/2025\/09\/djoko_logo.jpg\",\"width\":148,\"height\":48,\"caption\":\"Jean-Fran\u00e7ois Roebers\"},\"logo\":{\"@id\":\"https:\/\/djoko.nl\/home6\/wp-content\/uploads\/2025\/09\/djoko_logo.jpg\"},\"description\":\"Mijn interesse in vormgeving en ontwerpen in het algemeen, gebruik van programmeertalen en digitaal gereedschap, relaties met geschiedenis en wiskunde, combineer ik in deze blog.\",\"sameAs\":[\"http:\/\/djoko.nl\/home6\",\"https:\/\/www.linkedin.com\/in\/jean-franois-roebers-a14408\/\"],\"url\":\"https:\/\/djoko.nl\/home6\/index.php\/author\/jean_admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Van schets naar recht - djoko","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/","og_locale":"nl_NL","og_type":"article","og_title":"Van schets naar recht - djoko","og_description":"Een eenvoudige uitdaging: kan ik een slordige lijn tekenen op een canvas in html die daarna vanzelf een rechte lijn wordt? Hieronder staat een eerste versie met behulp van de P5-bibliotheek. Voor mobiele devices (jouw telefoon dus): klik hier. De broncode voor deze eerste versie vind je hier. Er volgt nog een uitbreiding naar het [&hellip;]","og_url":"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/","og_site_name":"djoko","article_published_time":"2023-03-07T09:16:59+00:00","article_modified_time":"2023-03-07T10:18:15+00:00","author":"Jean-Fran\u00e7ois Roebers","twitter_card":"summary_large_image","twitter_misc":{"Geschreven door":"Jean-Fran\u00e7ois Roebers","Geschatte leestijd":"1 minuut"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/#article","isPartOf":{"@id":"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/"},"author":{"name":"Jean-Fran\u00e7ois Roebers","@id":"https:\/\/djoko.nl\/home6\/#\/schema\/person\/f3d259e86ce771777335741dba143a1c"},"headline":"Van schets naar recht","datePublished":"2023-03-07T09:16:59+00:00","dateModified":"2023-03-07T10:18:15+00:00","mainEntityOfPage":{"@id":"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/"},"wordCount":72,"commentCount":0,"publisher":{"@id":"https:\/\/djoko.nl\/home6\/#\/schema\/person\/f3d259e86ce771777335741dba143a1c"},"articleSection":["programmeren"],"inLanguage":"nl-NL","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/","url":"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/","name":"Van schets naar recht - djoko","isPartOf":{"@id":"https:\/\/djoko.nl\/home6\/#website"},"datePublished":"2023-03-07T09:16:59+00:00","dateModified":"2023-03-07T10:18:15+00:00","breadcrumb":{"@id":"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/djoko.nl\/home6\/index.php\/2023\/03\/07\/van-schets-naar-recht\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/djoko.nl\/home6\/"},{"@type":"ListItem","position":2,"name":"Van schets naar recht"}]},{"@type":"WebSite","@id":"https:\/\/djoko.nl\/home6\/#website","url":"https:\/\/djoko.nl\/home6\/","name":"djoko","description":"reflectie op creatie van beeld, woord en muziek","publisher":{"@id":"https:\/\/djoko.nl\/home6\/#\/schema\/person\/f3d259e86ce771777335741dba143a1c"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/djoko.nl\/home6\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"},{"@type":["Person","Organization"],"@id":"https:\/\/djoko.nl\/home6\/#\/schema\/person\/f3d259e86ce771777335741dba143a1c","name":"Jean-Fran\u00e7ois Roebers","image":{"@type":"ImageObject","inLanguage":"nl-NL","@id":"https:\/\/djoko.nl\/home6\/wp-content\/uploads\/2025\/09\/djoko_logo.jpg","url":"https:\/\/djoko.nl\/home6\/wp-content\/uploads\/2025\/09\/djoko_logo.jpg","contentUrl":"https:\/\/djoko.nl\/home6\/wp-content\/uploads\/2025\/09\/djoko_logo.jpg","width":148,"height":48,"caption":"Jean-Fran\u00e7ois Roebers"},"logo":{"@id":"https:\/\/djoko.nl\/home6\/wp-content\/uploads\/2025\/09\/djoko_logo.jpg"},"description":"Mijn interesse in vormgeving en ontwerpen in het algemeen, gebruik van programmeertalen en digitaal gereedschap, relaties met geschiedenis en wiskunde, combineer ik in deze blog.","sameAs":["http:\/\/djoko.nl\/home6","https:\/\/www.linkedin.com\/in\/jean-franois-roebers-a14408\/"],"url":"https:\/\/djoko.nl\/home6\/index.php\/author\/jean_admin\/"}]}},"_links":{"self":[{"href":"https:\/\/djoko.nl\/home6\/index.php\/wp-json\/wp\/v2\/posts\/581","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/djoko.nl\/home6\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/djoko.nl\/home6\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/djoko.nl\/home6\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/djoko.nl\/home6\/index.php\/wp-json\/wp\/v2\/comments?post=581"}],"version-history":[{"count":10,"href":"https:\/\/djoko.nl\/home6\/index.php\/wp-json\/wp\/v2\/posts\/581\/revisions"}],"predecessor-version":[{"id":596,"href":"https:\/\/djoko.nl\/home6\/index.php\/wp-json\/wp\/v2\/posts\/581\/revisions\/596"}],"wp:attachment":[{"href":"https:\/\/djoko.nl\/home6\/index.php\/wp-json\/wp\/v2\/media?parent=581"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/djoko.nl\/home6\/index.php\/wp-json\/wp\/v2\/categories?post=581"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/djoko.nl\/home6\/index.php\/wp-json\/wp\/v2\/tags?post=581"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}