{"id":131,"date":"2008-12-22T00:00:23","date_gmt":"2008-12-22T07:00:23","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=402"},"modified":"2008-12-22T00:00:23","modified_gmt":"2008-12-22T07:00:23","slug":"gradient-glow","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=131","title":{"rendered":"Gradient Glow"},"content":{"rendered":"<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\nvar colors:Array = &#x5B;0xFF0000, 0x666699, 0x223322, 0xCCCCDD, 0xFFEEFF];\r\nvar alphas:Array = &#x5B;0, 1, 1, 1, 1];\r\nvar ratios:Array = &#x5B;0, 50, 100, 200, 255]\r\nvar filter:GradientGlowFilter = new GradientGlowFilter(0, 0, colors, alphas, ratios, 30, 30, 1, 2, &quot;full&quot;, true);\r\n \r\nvar circles:Shape = new Shape();\r\n\r\n for (var i:int = 0; i&lt;30; i++){\r\n  with(circles.graphics) beginFill(0xFF0000), drawCircle(Math.random()*500, Math.random()*400,10+Math.random()*40);\r\n }\r\n addChild(circles);\r\n \r\n circles.filters = &#x5B;filter];\r\n<\/pre>\n<p>I don&#8217;t see GradientGlowFilter used much. But with some tweaking you can probably get some decent stuff out of it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>var colors:Array = &#x5B;0xFF0000, 0x666699, 0x223322, 0xCCCCDD, 0xFFEEFF]; var alphas:Array = &#x5B;0, 1, 1, 1, 1]; var ratios:Array = &#x5B;0, 50, 100, 200, 255] var filter:GradientGlowFilter = new GradientGlowFilter(0, 0, colors, alphas, ratios, 30, 30, 1, 2, &quot;full&quot;, true); var circles:Shape = new Shape(); for (var i:int = 0; i&lt;30; i++){ with(circles.graphics) beginFill(0xFF0000), drawCircle(Math.random()*500, Math.random()*400,10+Math.random()*40); [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33],"tags":[3,4],"class_list":["post-131","post","type-post","status-publish","format-standard","hentry","category-graphics","tag-actionscript","tag-flash"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/131","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=131"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/131\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=131"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=131"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=131"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}