{"action":"created","issue":{"url":"https://api.github.com/repos/wellcaffeinated/PhysicsJS/issues/158","labels_url":"https://api.github.com/repos/wellcaffeinated/PhysicsJS/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/wellcaffeinated/PhysicsJS/issues/158/comments","events_url":"https://api.github.com/repos/wellcaffeinated/PhysicsJS/issues/158/events","html_url":"https://github.com/wellcaffeinated/PhysicsJS/issues/158","id":107696271,"number":158,"title":"Canvas background color unsettable","user":{"login":"ken-blocklevel","id":14290569,"avatar_url":"https://avatars.githubusercontent.com/u/14290569?v=3","gravatar_id":"","url":"https://api.github.com/users/ken-blocklevel","html_url":"https://github.com/ken-blocklevel","followers_url":"https://api.github.com/users/ken-blocklevel/followers","following_url":"https://api.github.com/users/ken-blocklevel/following{/other_user}","gists_url":"https://api.github.com/users/ken-blocklevel/gists{/gist_id}","starred_url":"https://api.github.com/users/ken-blocklevel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ken-blocklevel/subscriptions","organizations_url":"https://api.github.com/users/ken-blocklevel/orgs","repos_url":"https://api.github.com/users/ken-blocklevel/repos","events_url":"https://api.github.com/users/ken-blocklevel/events{/privacy}","received_events_url":"https://api.github.com/users/ken-blocklevel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-22T11:30:28Z","updated_at":"2015-09-28T17:31:24Z","closed_at":null,"body":"when setting styles { 'color' } for the PIXI renderer, color is always black, no matter what is given.\r\n\r\nusing physics/dist/physicsjs-full.min.js\r\n\r\npixi, in requirejs.config path is set to: pixi: 'physics/lib/pixi'\r\n\r\n            require(['pixi'], function (PIXI)\r\n            {\r\n                window.PIXI = PIXI;\r\n                // create a renderer\r\n                var renderer = Physics.renderer('pixi', {\r\n                    el: 'PIXI',\r\n                    autoResize: false,\r\n                    width: bm.width,\r\n                    height: bm.height,\r\n\r\n                    styles: {\r\n                        'color': '0x66FF99',\r\n                    }\r\n                });\r\n\r\n                // add the renderer\r\n                world.add(renderer);\r\n                // render on each step\r\n                world.on('step', function ()\r\n                {\r\n                    world.render();\r\n                });\r\n                // add the interaction\r\n                world.add(Physics.behavior('interactive', {el: renderer.container}));\r\n            });"},"comment":{"url":"https://api.github.com/repos/wellcaffeinated/PhysicsJS/issues/comments/143813899","html_url":"https://github.com/wellcaffeinated/PhysicsJS/issues/158#issuecomment-143813899","issue_url":"https://api.github.com/repos/wellcaffeinated/PhysicsJS/issues/158","id":143813899,"user":{"login":"ProgrammingDonkey","id":14850098,"avatar_url":"https://avatars.githubusercontent.com/u/14850098?v=3","gravatar_id":"","url":"https://api.github.com/users/ProgrammingDonkey","html_url":"https://github.com/ProgrammingDonkey","followers_url":"https://api.github.com/users/ProgrammingDonkey/followers","following_url":"https://api.github.com/users/ProgrammingDonkey/following{/other_user}","gists_url":"https://api.github.com/users/ProgrammingDonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/ProgrammingDonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ProgrammingDonkey/subscriptions","organizations_url":"https://api.github.com/users/ProgrammingDonkey/orgs","repos_url":"https://api.github.com/users/ProgrammingDonkey/repos","events_url":"https://api.github.com/users/ProgrammingDonkey/events{/privacy}","received_events_url":"https://api.github.com/users/ProgrammingDonkey/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T17:31:24Z","updated_at":"2015-09-28T17:31:24Z","body":"Ok... :/"}}