{"action":"created","issue":{"url":"https://api.github.com/repos/processing-js/processing-js/issues/213","labels_url":"https://api.github.com/repos/processing-js/processing-js/issues/213/labels{/name}","comments_url":"https://api.github.com/repos/processing-js/processing-js/issues/213/comments","events_url":"https://api.github.com/repos/processing-js/processing-js/issues/213/events","html_url":"https://github.com/processing-js/processing-js/issues/213","id":112163361,"number":213,"title":"img.copy fails silently","user":{"login":"hungerburg","id":586972,"avatar_url":"https://avatars.githubusercontent.com/u/586972?v=3","gravatar_id":"","url":"https://api.github.com/users/hungerburg","html_url":"https://github.com/hungerburg","followers_url":"https://api.github.com/users/hungerburg/followers","following_url":"https://api.github.com/users/hungerburg/following{/other_user}","gists_url":"https://api.github.com/users/hungerburg/gists{/gist_id}","starred_url":"https://api.github.com/users/hungerburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungerburg/subscriptions","organizations_url":"https://api.github.com/users/hungerburg/orgs","repos_url":"https://api.github.com/users/hungerburg/repos","events_url":"https://api.github.com/users/hungerburg/events{/privacy}","received_events_url":"https://api.github.com/users/hungerburg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2015-10-19T15:00:42Z","updated_at":"2015-10-19T23:48:51Z","closed_at":null,"body":"My sketch pre-loads an image and later, during run-time, requests another one asynchronously. When I copy the new image into the old image, nothing happens - This used to work in java processing.\r\n\r\nHere an example - http://myzel.net/js/requestImage.html - After five seconds the display should alternate between showing an A and showing a B.\r\n\r\nDid I miss something? Have I found a bug? Please share!"},"comment":{"url":"https://api.github.com/repos/processing-js/processing-js/issues/comments/149378866","html_url":"https://github.com/processing-js/processing-js/issues/213#issuecomment-149378866","issue_url":"https://api.github.com/repos/processing-js/processing-js/issues/213","id":149378866,"user":{"login":"hungerburg","id":586972,"avatar_url":"https://avatars.githubusercontent.com/u/586972?v=3","gravatar_id":"","url":"https://api.github.com/users/hungerburg","html_url":"https://github.com/hungerburg","followers_url":"https://api.github.com/users/hungerburg/followers","following_url":"https://api.github.com/users/hungerburg/following{/other_user}","gists_url":"https://api.github.com/users/hungerburg/gists{/gist_id}","starred_url":"https://api.github.com/users/hungerburg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hungerburg/subscriptions","organizations_url":"https://api.github.com/users/hungerburg/orgs","repos_url":"https://api.github.com/users/hungerburg/repos","events_url":"https://api.github.com/users/hungerburg/events{/privacy}","received_events_url":"https://api.github.com/users/hungerburg/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T23:48:51Z","updated_at":"2015-10-19T23:48:51Z","body":"Success: ```nextImg = requestImage(URI + \"?rnd=\" + Math.random());``` does the trick! So, the lesson learned: processingjs does not load a requested image, if it has been fetched before, unless the URI changes."}}