{"id":8483,"date":"2014-02-25T16:09:22","date_gmt":"2014-02-25T21:09:22","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=8483"},"modified":"2014-02-26T09:47:34","modified_gmt":"2014-02-26T14:47:34","slug":"cocoa-script-shaders","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2014\/02\/25\/cocoa-script-shaders\/","title":{"rendered":"Cocoa Script &ldquo;Shaders&rdquo;"},"content":{"rendered":"<p><a href=\"http:\/\/shapeof.com\/archives\/2014\/2\/progress_report_for_2014.02.25.html\">Gus Mueller<\/a>:<\/p>\n<blockquote cite=\"http:\/\/shapeof.com\/archives\/2014\/2\/progress_report_for_2014.02.25.html\"><p>I also played around with Cocoa Script &ldquo;shaders&rdquo; for shape graphics in Acorn. This won&rsquo;t ship in 4.4 (or maybe ever?), but it was fun to code up and might be something awesome some day. How it works is a little hard to explain, but I'll try. Basically, instead of a rectangle having just a stroke and a fill when it draws, it will call a snippet of Cocoa Script code in place of the normal drawing routines. That snippet of code then has access to a bunch of libraries, and can do whatever it wants in the context it is drawing into.<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Gus Mueller: I also played around with Cocoa Script &ldquo;shaders&rdquo; for shape graphics in Acorn. This won&rsquo;t ship in 4.4 (or maybe ever?), but it was fun to code up and might be something awesome some day. How it works is a little hard to explain, but I'll try. Basically, instead of a rectangle having [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[76,346,30,32],"class_list":["post-8483","post","type-post","status-publish","format-standard","hentry","category-technology","tag-acorn","tag-javascript","tag-mac","tag-macapp"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8483","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=8483"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8483\/revisions"}],"predecessor-version":[{"id":8490,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8483\/revisions\/8490"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=8483"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=8483"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=8483"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}