Created
March 18, 2011 01:43
-
-
Save meltingice/875484 to your computer and use it in GitHub Desktop.
What I wish JS could do.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function render() { | |
var pixels = get_pixels(); | |
new Thread(function () { | |
for (i = 0, len = pixels.length; i < len; i +=4) { | |
// holy shared process memory batman! | |
// manipulate pixels here | |
} | |
finished(); | |
}); | |
} | |
function finished() { | |
// done! | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment