
{"id":385,"date":"2014-01-17T18:24:41","date_gmt":"2014-01-17T18:24:41","guid":{"rendered":"http:\/\/www.starcoder.com\/wordpress\/?p=385"},"modified":"2021-10-30T19:53:29","modified_gmt":"2021-10-30T19:53:29","slug":"gsgradienteditor","status":"publish","type":"post","link":"https:\/\/www.starcoder.com\/wordpress\/2014\/01\/gsgradienteditor\/","title":{"rendered":"GSGradientEditor"},"content":{"rendered":"<p>A fairly significant feature in Seasonality Pro is the ability to edit the gradients used to show weather data on a map. \u00a0When looking around for some sample open source gradient editors online, I didn&#8217;t come across anything I could really use. \u00a0So I decided to write my own and offer it under an MIT license. \u00a0I posted the source code (link below) on GitHub. \u00a0Here&#8217;s what it looks like:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone\" title=\"GSGradientEditor Screenshot\" src=\"https:\/\/raw.githubusercontent.com\/mikepj\/GSGradientEditor\/master\/sample.png\" alt=\"\" width=\"320\" height=\"267\" \/><\/p>\n<p>I&#8217;ve included a lot of documentation as well as a sample Xcode project to show how to use it over on the GitHub page:<\/p>\n<p><a title=\"GSGradientEditor at GitHub\" href=\"https:\/\/github.com\/mikepj\/GSGradientEditor\">GSGradientEditor on GitHub<\/a><\/p>\n<p>I looked at quite a few different graphics apps when working on the UI. \u00a0I wanted to see not only how other implementations looked, but how they worked. \u00a0With iOS 7 being more gesture-centric, I wanted to make sure that interaction with GSGradientEditor was intuitive. \u00a0I found the <a href=\"https:\/\/itunes.apple.com\/us\/app\/inkpad\/id400083414?mt=8\">Inkpad<\/a> app most helpful during this process. \u00a0In the end, I like how GSGradientEditor turned out.<\/p>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A fairly significant feature in Seasonality Pro is the ability to edit the gradients used to show weather data on a map. \u00a0When looking around for some sample open source gradient editors online, I didn&#8217;t come across anything I could really use. \u00a0So I decided to write my own and offer it under an MIT [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,49,15,27],"tags":[],"class_list":["post-385","post","type-post","status-publish","format-standard","hentry","category-coding","category-ipad","category-iphone","category-seasonality","post-preview"],"_links":{"self":[{"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/posts\/385","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/comments?post=385"}],"version-history":[{"count":7,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/posts\/385\/revisions"}],"predecessor-version":[{"id":548,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/posts\/385\/revisions\/548"}],"wp:attachment":[{"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/media?parent=385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/categories?post=385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.starcoder.com\/wordpress\/wp-json\/wp\/v2\/tags?post=385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}