{"action":"created","issue":{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1980","labels_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1980/labels{/name}","comments_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1980/comments","events_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1980/events","html_url":"https://github.com/GoodBoyDigital/pixi.js/issues/1980","id":95457605,"number":1980,"title":"Using a constantly updating canvas as a Texture","user":{"login":"AndreasDilaveris","id":3543474,"avatar_url":"https://avatars.githubusercontent.com/u/3543474?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasDilaveris","html_url":"https://github.com/AndreasDilaveris","followers_url":"https://api.github.com/users/AndreasDilaveris/followers","following_url":"https://api.github.com/users/AndreasDilaveris/following{/other_user}","gists_url":"https://api.github.com/users/AndreasDilaveris/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasDilaveris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasDilaveris/subscriptions","organizations_url":"https://api.github.com/users/AndreasDilaveris/orgs","repos_url":"https://api.github.com/users/AndreasDilaveris/repos","events_url":"https://api.github.com/users/AndreasDilaveris/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasDilaveris/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-16T15:19:09Z","updated_at":"2015-07-16T19:14:49Z","closed_at":null,"body":"Hi guys,\r\n\r\nFirst off thanks for an amazing opensource product.  Using it is a learning experience in and of itself. \r\n\r\nI am trying to achieve the following: Create gradients with alpha on a canvas ( that will change on animationFrame) apply them to a Texture and then to a Sprite - then apply this Sprite as another Sprite's mask.  An example goal would be a gradient wipe, but obviously not limited to just this effect.  \r\n\r\nI'm looking for the most optimum way to apply this - canvas sourced, animated Texture, to a Sprite. \r\nDo I have to constantly use .fromCanvas? Is there something cleverer?\r\n\r\nAlso doing something like the above; will I be able to take advantage of webgl?\r\n\r\nHope that makes sense.  I'm a few days into pixi use and I'm already hooked.\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/comments/122055112","html_url":"https://github.com/GoodBoyDigital/pixi.js/issues/1980#issuecomment-122055112","issue_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/1980","id":122055112,"user":{"login":"englercj","id":944497,"avatar_url":"https://avatars.githubusercontent.com/u/944497?v=3","gravatar_id":"","url":"https://api.github.com/users/englercj","html_url":"https://github.com/englercj","followers_url":"https://api.github.com/users/englercj/followers","following_url":"https://api.github.com/users/englercj/following{/other_user}","gists_url":"https://api.github.com/users/englercj/gists{/gist_id}","starred_url":"https://api.github.com/users/englercj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/englercj/subscriptions","organizations_url":"https://api.github.com/users/englercj/orgs","repos_url":"https://api.github.com/users/englercj/repos","events_url":"https://api.github.com/users/englercj/events{/privacy}","received_events_url":"https://api.github.com/users/englercj/received_events","type":"User","site_admin":false},"created_at":"2015-07-16T19:14:49Z","updated_at":"2015-07-16T19:14:49Z","body":"Each time you call `.update()` we have to upload a new texture to the GPU, which can be expensive. YMMV, but just be aware that is can cause performance issues. Nothing is better than testing :)"}}