{"action":"created","issue":{"url":"https://api.github.com/repos/mrdoob/texgen.js/issues/31","labels_url":"https://api.github.com/repos/mrdoob/texgen.js/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/mrdoob/texgen.js/issues/31/comments","events_url":"https://api.github.com/repos/mrdoob/texgen.js/issues/31/events","html_url":"https://github.com/mrdoob/texgen.js/pull/31","id":66370460,"number":31,"title":"PutTexture","user":{"login":"DGruenwald","id":10934467,"avatar_url":"https://avatars.githubusercontent.com/u/10934467?v=3","gravatar_id":"","url":"https://api.github.com/users/DGruenwald","html_url":"https://github.com/DGruenwald","followers_url":"https://api.github.com/users/DGruenwald/followers","following_url":"https://api.github.com/users/DGruenwald/following{/other_user}","gists_url":"https://api.github.com/users/DGruenwald/gists{/gist_id}","starred_url":"https://api.github.com/users/DGruenwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DGruenwald/subscriptions","organizations_url":"https://api.github.com/users/DGruenwald/orgs","repos_url":"https://api.github.com/users/DGruenwald/repos","events_url":"https://api.github.com/users/DGruenwald/events{/privacy}","received_events_url":"https://api.github.com/users/DGruenwald/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-04T21:35:25Z","updated_at":"2015-04-05T02:58:54Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mrdoob/texgen.js/pulls/31","html_url":"https://github.com/mrdoob/texgen.js/pull/31","diff_url":"https://github.com/mrdoob/texgen.js/pull/31.diff","patch_url":"https://github.com/mrdoob/texgen.js/pull/31.patch"},"body":"PutTexture lets one draw an already existing texture onto another. For example:\r\n\r\n![source](https://cloud.githubusercontent.com/assets/10934467/6994632/218ddb2e-db21-11e4-963a-19c8dad26c5c.png) (Source texture)\r\n![norepeat](https://cloud.githubusercontent.com/assets/10934467/6994637/3c07988c-db21-11e4-9f7b-465605667f4b.png) ![wrap](https://cloud.githubusercontent.com/assets/10934467/6994636/3c04821e-db21-11e4-9d1c-c1f32aec8810.png) ![mirror](https://cloud.githubusercontent.com/assets/10934467/6994635/3bfd3964-db21-11e4-94ca-4e7f9f1ef992.png) ![extend](https://cloud.githubusercontent.com/assets/10934467/6994634/3bf9ed04-db21-11e4-96cc-97585424e90a.png)\r\n(no repeat - wrap - mirror - extend)\r\n\r\nThis allows one to, for example, work with different layers or create predefined effects or \"pseudo filters\" like vignettes or radial blurs:\r\n\r\n![radialblur](https://cloud.githubusercontent.com/assets/10934467/6994661/8caa559e-db22-11e4-88e2-734b5d1529db.png)\r\n\r\nI also found another solution for mirrored repeat for gradients and re-implemented it here."},"comment":{"url":"https://api.github.com/repos/mrdoob/texgen.js/issues/comments/89708141","html_url":"https://github.com/mrdoob/texgen.js/pull/31#issuecomment-89708141","issue_url":"https://api.github.com/repos/mrdoob/texgen.js/issues/31","id":89708141,"user":{"login":"DGruenwald","id":10934467,"avatar_url":"https://avatars.githubusercontent.com/u/10934467?v=3","gravatar_id":"","url":"https://api.github.com/users/DGruenwald","html_url":"https://github.com/DGruenwald","followers_url":"https://api.github.com/users/DGruenwald/followers","following_url":"https://api.github.com/users/DGruenwald/following{/other_user}","gists_url":"https://api.github.com/users/DGruenwald/gists{/gist_id}","starred_url":"https://api.github.com/users/DGruenwald/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DGruenwald/subscriptions","organizations_url":"https://api.github.com/users/DGruenwald/orgs","repos_url":"https://api.github.com/users/DGruenwald/repos","events_url":"https://api.github.com/users/DGruenwald/events{/privacy}","received_events_url":"https://api.github.com/users/DGruenwald/received_events","type":"User","site_admin":false},"created_at":"2015-04-05T02:58:54Z","updated_at":"2015-04-05T02:58:54Z","body":"For some reason, the latest commit won't get added to this pull request. I tried to close this one and create a new request but that didn't work either."}}