{"id":714,"date":"2020-04-17T20:13:00","date_gmt":"2020-04-18T02:13:00","guid":{"rendered":"https:\/\/www.great-white-software.com\/blog\/?p=714"},"modified":"2020-04-20T13:24:47","modified_gmt":"2020-04-20T19:24:47","slug":"things-that-make-you-go-huh","status":"publish","type":"post","link":"https:\/\/www.great-white-software.com\/blog\/2020\/04\/17\/things-that-make-you-go-huh\/","title":{"rendered":"Things that make you go Huh"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Well in this case more like &#8220;Huh I guess I should finish that damned thing up&#8221; \ud83d\ude1b<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">When I watched the recent keynote there was one bit that made me think exactly that. It was the point where geoff was showing off drawing from a XojoScript.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I&#8217;d tinkered with something on and off for a while &#8211; and its been more off lately than on.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">But when I saw that I thought &#8220;Gee. I really should finish demo that up.&#8221;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So I did. And here you are.  A way to draw from XojoScript to a graphics that resides in Xojo code. In the demo it comes from the paint event of a canvas.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Doesn&#8217;t currently support any additional clipping of the graphics but I&#8217;ll see what I can do.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There&#8217;s no support for Pictures since pictures do not exist in XojoScript. That might also be possible to do without too much effort but I dont have any need for it at the moment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The ONE thing to remember with XojoScript is it is all very CLASSIC API 1.0<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">So extension methods like String.Mid, String.len etc dont exist (I could add those too but &#8230;)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/npalardy\/ScriptGraphics\">This is a demo.<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Have fun with it. Let me know what you think.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">UPDATE : Clipping has been added !<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Well in this case more like &#8220;Huh I guess I should finish that damned thing up&#8221; \ud83d\ude1b When I watched the recent keynote there was one bit that made me think exactly that. It was the point where geoff was showing off drawing from a XojoScript. I&#8217;d tinkered with something on and off for a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.great-white-software.com\/blog\/2020\/04\/17\/things-that-make-you-go-huh\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Things that make you go Huh&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-714","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/comments?post=714"}],"version-history":[{"count":3,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/714\/revisions"}],"predecessor-version":[{"id":722,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/posts\/714\/revisions\/722"}],"wp:attachment":[{"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/media?parent=714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/categories?post=714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.great-white-software.com\/blog\/wp-json\/wp\/v2\/tags?post=714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}