{"id":3560,"date":"2014-03-01T07:05:19","date_gmt":"2014-03-01T15:05:19","guid":{"rendered":"http:\/\/www.corbinstreehouse.com\/blog\/2014\/03\/led-cyr-wheel-designing-patterns\/"},"modified":"2018-11-03T13:36:24","modified_gmt":"2018-11-03T20:36:24","slug":"led-cyr-wheel-designing-patterns","status":"publish","type":"post","link":"https:\/\/www.corbinstreehouse.com\/blog\/2014\/03\/led-cyr-wheel-designing-patterns\/","title":{"rendered":"LED Cyr wheel: designing patterns"},"content":{"rendered":"<p id=\"top\" \/>\n<p>I&#8217;ve had to re-remember a lot of old math that I haven&#8217;t used since probably sophomore year in high school; my jr year and beyond was all calculus\u2026which is past what I&#8217;m doing here (so far).<\/p>\n<p>I ran across Grapher.app on Mac OS X. I haven&#8217;t seriously used it before, and usually use my TI85, but I gave it a shot. Oh my gosh; it is amazing! I kept having trouble with a simple x^2 fade in\/out equation I was writing. It needed to vary the output value based on: time, number of LEDs per gradient, and the LED position in the strip of LEDs. I wanted the color to ramp from 0 (off) to 1 (the full color), and then ramp back down on each cycle. Vary this over time.<\/p>\n<p>Grapher.app let me add a variable controlled by time to simulate running the pattern and figure out what was wrong. It took me a day to learn the program (it has quarks, and bugs) and remember old-math, but it was worth it!<\/p>\n<p>\n<a href=\"http:\/\/www.corbinstreehouse.com\/blog\/wp-content\/uploads\/2014\/02\/Screen-Shot-2014-02-28-at-8.00.02-PM.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.corbinstreehouse.com\/blog\/wp-content\/uploads\/2014\/02\/Screen-Shot-2014-02-28-at-8.00.02-PM-tm.jpg\" width=\"500\" height=\"222\" alt=\"Screen Shot 2014-02-28 at 8.00.02 PM.png\" \/><\/a><\/p>\n<p>I took the equation above and converted it to C\/C++ code for my app. Awesome.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve had to re-remember a lot of old math that I haven&#8217;t used since probably sophomore year in high school; my jr year and beyond was all calculus\u2026which is past what I&#8217;m doing here (so&#8230; <a class=\"read-more\" href=\"https:\/\/www.corbinstreehouse.com\/blog\/2014\/03\/led-cyr-wheel-designing-patterns\/\">[read more]<\/a><\/p>\n","protected":false},"author":1,"featured_media":3558,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[13],"tags":[],"class_list":["post-3560","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-circus-and-silk"],"jetpack_featured_media_url":"https:\/\/www.corbinstreehouse.com\/blog\/wp-content\/uploads\/2014\/02\/Screen-Shot-2014-02-28-at-8.00.02-PM.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/3560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/comments?post=3560"}],"version-history":[{"count":1,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/3560\/revisions"}],"predecessor-version":[{"id":5391,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/3560\/revisions\/5391"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media\/3558"}],"wp:attachment":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media?parent=3560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/categories?post=3560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/tags?post=3560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}