{"action":"closed","issue":{"url":"https://api.github.com/repos/openai/gym/issues/1722","repository_url":"https://api.github.com/repos/openai/gym","labels_url":"https://api.github.com/repos/openai/gym/issues/1722/labels{/name}","comments_url":"https://api.github.com/repos/openai/gym/issues/1722/comments","events_url":"https://api.github.com/repos/openai/gym/issues/1722/events","html_url":"https://github.com/openai/gym/issues/1722","id":512956078,"node_id":"MDU6SXNzdWU1MTI5NTYwNzg=","number":1722,"title":"Viewer set_color alpha channel","user":{"login":"dizcza","id":7688337,"node_id":"MDQ6VXNlcjc2ODgzMzc=","avatar_url":"https://avatars1.githubusercontent.com/u/7688337?v=4","gravatar_id":"","url":"https://api.github.com/users/dizcza","html_url":"https://github.com/dizcza","followers_url":"https://api.github.com/users/dizcza/followers","following_url":"https://api.github.com/users/dizcza/following{/other_user}","gists_url":"https://api.github.com/users/dizcza/gists{/gist_id}","starred_url":"https://api.github.com/users/dizcza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dizcza/subscriptions","organizations_url":"https://api.github.com/users/dizcza/orgs","repos_url":"https://api.github.com/users/dizcza/repos","events_url":"https://api.github.com/users/dizcza/events{/privacy}","received_events_url":"https://api.github.com/users/dizcza/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-10-27T11:54:54Z","updated_at":"2019-11-01T23:05:35Z","closed_at":"2019-11-01T23:05:35Z","author_association":"NONE","body":"This is a feature request with a bug description.\r\n\r\n1. Feature request.\r\nI'd like to have an option for setting the alpha channel in\r\n```python\r\n    def set_color(self, r, g, b, a=1):\r\n        self._color.vec4 = (r, g, b, a)\r\n```\r\n\r\n2. Bug/Unexpected behavior.\r\nCurrently, I cannot easily modify object transparency.\r\n\r\n```python\r\nobj = FilledPolygon(...)\r\nobj.add_attr(Color(1, 0, 0, 0.5))\r\n...\r\nviewer.render()\r\n```\r\n\r\nExpected:\r\nTransparent red color. Or, at least, warning that Color attr are ignored.\r\n\r\nGot:\r\nBlack non-transparent (alpha=1) color.\r\n\r\nFor now, I'm doing \r\n`obj._color.vec4 = (1, 0, 0, 0.5)`\r\n\r\nbut `_color` is a protected field and I should not rely on this. Hence, this is a hack."}}
{"actor":{"display_login":"christopherhesse"}}