{"action":"closed","issue":{"url":"https://api.github.com/repos/Nurgak/Cube-engine/issues/9","labels_url":"https://api.github.com/repos/Nurgak/Cube-engine/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/Nurgak/Cube-engine/issues/9/comments","events_url":"https://api.github.com/repos/Nurgak/Cube-engine/issues/9/events","html_url":"https://github.com/Nurgak/Cube-engine/issues/9","id":63234514,"number":9,"title":"Problems with darker vertextes","user":{"login":"PDKnight","id":10048216,"avatar_url":"https://avatars.githubusercontent.com/u/10048216?v=3","gravatar_id":"","url":"https://api.github.com/users/PDKnight","html_url":"https://github.com/PDKnight","followers_url":"https://api.github.com/users/PDKnight/followers","following_url":"https://api.github.com/users/PDKnight/following{/other_user}","gists_url":"https://api.github.com/users/PDKnight/gists{/gist_id}","starred_url":"https://api.github.com/users/PDKnight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PDKnight/subscriptions","organizations_url":"https://api.github.com/users/PDKnight/orgs","repos_url":"https://api.github.com/users/PDKnight/repos","events_url":"https://api.github.com/users/PDKnight/events{/privacy}","received_events_url":"https://api.github.com/users/PDKnight/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-20T14:10:39Z","updated_at":"2015-03-20T20:33:11Z","closed_at":"2015-03-20T20:33:11Z","body":"Hi, nurgar, I need help. I want to make the vertextes darker, but it seems that it doesn't work. The problem is just with `fillRect()` function, but I don't know, how to fix it. Please, help me :(\r\n\r\n### Code\r\n```javascript\r\n// draw the transformed image\r\nthis.context.transform(delta_a/delta, delta_d/delta, delta_b/delta, delta_e/delta, delta_c/delta, delta_f/delta);\r\nthis.context.drawImage(this.texture, 0, 0);\r\nif(p == VERTEX.RIGHT)\r\n{\r\n\tthis.context.fillStyle = \"rgba(0,0,0,0.4)\";\r\n\tthis.context.fillRect(0, 0, 128, 128);\r\n}\r\nthis.context.restore();\r\n```\r\n\r\nWhen I insert `console.log()` function in `if(p == VERTEX.RIGHT)`, it works. Can you please help me? :("}}