{"action":"created","issue":{"url":"https://api.github.com/repos/shoes/shoes4/issues/1190","labels_url":"https://api.github.com/repos/shoes/shoes4/issues/1190/labels{/name}","comments_url":"https://api.github.com/repos/shoes/shoes4/issues/1190/comments","events_url":"https://api.github.com/repos/shoes/shoes4/issues/1190/events","html_url":"https://github.com/shoes/shoes4/issues/1190","id":120665621,"number":1190,"title":"image inherits alpha from last background call","user":{"login":"lmrodriguezr","id":12363,"avatar_url":"https://avatars.githubusercontent.com/u/12363?v=3","gravatar_id":"","url":"https://api.github.com/users/lmrodriguezr","html_url":"https://github.com/lmrodriguezr","followers_url":"https://api.github.com/users/lmrodriguezr/followers","following_url":"https://api.github.com/users/lmrodriguezr/following{/other_user}","gists_url":"https://api.github.com/users/lmrodriguezr/gists{/gist_id}","starred_url":"https://api.github.com/users/lmrodriguezr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmrodriguezr/subscriptions","organizations_url":"https://api.github.com/users/lmrodriguezr/orgs","repos_url":"https://api.github.com/users/lmrodriguezr/repos","events_url":"https://api.github.com/users/lmrodriguezr/events{/privacy}","received_events_url":"https://api.github.com/users/lmrodriguezr/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shoes/shoes4/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/shoes/shoes4/milestones/3","html_url":"https://github.com/shoes/shoes4/milestones/4.0.0.rc1","labels_url":"https://api.github.com/repos/shoes/shoes4/milestones/3/labels","id":340074,"number":3,"title":"4.0.0.rc1","description":"The shoes4 release candidate - near feature complete. Aiming at shoes3 compatibility, except for the video element. See the [Roadmap](https://github.com/shoes/shoes4/wiki/Roadmap) for more information.","creator":{"login":"PragTob","id":606517,"avatar_url":"https://avatars.githubusercontent.com/u/606517?v=3","gravatar_id":"","url":"https://api.github.com/users/PragTob","html_url":"https://github.com/PragTob","followers_url":"https://api.github.com/users/PragTob/followers","following_url":"https://api.github.com/users/PragTob/following{/other_user}","gists_url":"https://api.github.com/users/PragTob/gists{/gist_id}","starred_url":"https://api.github.com/users/PragTob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PragTob/subscriptions","organizations_url":"https://api.github.com/users/PragTob/orgs","repos_url":"https://api.github.com/users/PragTob/repos","events_url":"https://api.github.com/users/PragTob/events{/privacy}","received_events_url":"https://api.github.com/users/PragTob/received_events","type":"User","site_admin":false},"open_issues":65,"closed_issues":122,"state":"open","created_at":"2013-05-23T09:58:15Z","updated_at":"2015-12-07T00:07:28Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-12-06T22:38:46Z","updated_at":"2015-12-07T07:52:27Z","closed_at":null,"body":"This is a bit odd, and I suspect it's not an intended behavior (plus I couldn't find it in the docs), so I'm gonna guess it's a bug. Take a look at this little program (to be executed from the shoes4 dir):\r\n```ruby\r\nShoes.app do\r\n   stack margin: 40 do\r\n      stack{ background rgb(1.0,1.0,1.0,1.0) }\r\n      stack do\r\n         title \"Now I'm here\"\r\n         image(\"samples/avatar.png\")\r\n         para \"zoot!\"\r\n      end\r\n      stack{ background rgb(1.0,1.0,1.0,0.3) }\r\n      stack do\r\n         title \"Now... sorta\"\r\n         image(\"samples/avatar.png\")\r\n         para \"zap!\"\r\n      end\r\n      stack{ background rgb(1.0,1.0,1.0,0.0) }\r\n      stack do\r\n         title \"Now I'm not\"\r\n         image(\"samples/avatar.png\")\r\n         para \"zouk!\"\r\n      end\r\n   end\r\nend\r\n```\r\n\r\nThis how it looks like:\r\n<img width=\"712\" alt=\"screen shot 2015-12-06 at 5 33 57 pm\" src=\"https://cloud.githubusercontent.com/assets/12363/11616082/c04e9ebc-9c3f-11e5-9ef7-47efd5615537.png\">\r\n\r\n\r\nWhat this means is that the only way to put an image with `alpha=1.0` inside a container with `alpha < 1.0` is by adding an \"invisible\" `stack{ background rgb(1.0,1.0,1.0,1.0) }` before the image."},"comment":{"url":"https://api.github.com/repos/shoes/shoes4/issues/comments/162440220","html_url":"https://github.com/shoes/shoes4/issues/1190#issuecomment-162440220","issue_url":"https://api.github.com/repos/shoes/shoes4/issues/1190","id":162440220,"user":{"login":"PragTob","id":606517,"avatar_url":"https://avatars.githubusercontent.com/u/606517?v=3","gravatar_id":"","url":"https://api.github.com/users/PragTob","html_url":"https://github.com/PragTob","followers_url":"https://api.github.com/users/PragTob/followers","following_url":"https://api.github.com/users/PragTob/following{/other_user}","gists_url":"https://api.github.com/users/PragTob/gists{/gist_id}","starred_url":"https://api.github.com/users/PragTob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PragTob/subscriptions","organizations_url":"https://api.github.com/users/PragTob/orgs","repos_url":"https://api.github.com/users/PragTob/repos","events_url":"https://api.github.com/users/PragTob/events{/privacy}","received_events_url":"https://api.github.com/users/PragTob/received_events","type":"User","site_admin":false},"created_at":"2015-12-07T07:52:27Z","updated_at":"2015-12-07T07:52:27Z","body":"Thanks, great bug report! :D \r\n\r\nIf I were to guess, I'd say that the graphics context doesn't correctly reset alpha but I'm probably wrong..."}}