{"action":"created","issue":{"url":"https://api.github.com/repos/fponticelli/thx.color/issues/25","labels_url":"https://api.github.com/repos/fponticelli/thx.color/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/fponticelli/thx.color/issues/25/comments","events_url":"https://api.github.com/repos/fponticelli/thx.color/issues/25/events","html_url":"https://github.com/fponticelli/thx.color/issues/25","id":94738593,"number":25,"title":"function for simulate alpha opacity","user":{"login":"francescoagati","id":175524,"avatar_url":"https://avatars.githubusercontent.com/u/175524?v=3","gravatar_id":"","url":"https://api.github.com/users/francescoagati","html_url":"https://github.com/francescoagati","followers_url":"https://api.github.com/users/francescoagati/followers","following_url":"https://api.github.com/users/francescoagati/following{/other_user}","gists_url":"https://api.github.com/users/francescoagati/gists{/gist_id}","starred_url":"https://api.github.com/users/francescoagati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francescoagati/subscriptions","organizations_url":"https://api.github.com/users/francescoagati/orgs","repos_url":"https://api.github.com/users/francescoagati/repos","events_url":"https://api.github.com/users/francescoagati/events{/privacy}","received_events_url":"https://api.github.com/users/francescoagati/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-07-13T14:49:01Z","updated_at":"2015-07-14T17:38:30Z","closed_at":"2015-07-14T01:50:23Z","body":"```\r\nclass ColorTools {\r\n  public inline static function withAlphaEmulated(color:thx.color.Rgbx,background:thx.color.Rgb,alpha:Float) {\r\n    var red =  Std.int((1 - alpha) * background.red + alpha * color.red);\r\n    var green =  Std.int((1 - alpha) * background.green + alpha * color.green);\r\n    var blue = Std.int((1 - alpha) * background.blue + alpha * color.blue);\r\n    trace(red,green,blue);\r\n    return ('rgb($red,$green,$blue)':thx.color.Rgb);\r\n  }\r\n}\r\n```\r\n\r\nbased on http://yolijn.com/convert-rgba-to-rgb\r\n"},"comment":{"url":"https://api.github.com/repos/fponticelli/thx.color/issues/comments/121318389","html_url":"https://github.com/fponticelli/thx.color/issues/25#issuecomment-121318389","issue_url":"https://api.github.com/repos/fponticelli/thx.color/issues/25","id":121318389,"user":{"login":"francescoagati","id":175524,"avatar_url":"https://avatars.githubusercontent.com/u/175524?v=3","gravatar_id":"","url":"https://api.github.com/users/francescoagati","html_url":"https://github.com/francescoagati","followers_url":"https://api.github.com/users/francescoagati/followers","following_url":"https://api.github.com/users/francescoagati/following{/other_user}","gists_url":"https://api.github.com/users/francescoagati/gists{/gist_id}","starred_url":"https://api.github.com/users/francescoagati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francescoagati/subscriptions","organizations_url":"https://api.github.com/users/francescoagati/orgs","repos_url":"https://api.github.com/users/francescoagati/repos","events_url":"https://api.github.com/users/francescoagati/events{/privacy}","received_events_url":"https://api.github.com/users/francescoagati/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T17:38:30Z","updated_at":"2015-07-14T17:38:30Z","body":":+1: "}}