mrdoob/three.js — Issue #758: How do I get the pixel color of a jpg?
Author: lonelydatum
Created: 2011-11-15 03:16:17+00:00
State: open

How do I get the pixel color of a jpg? For example:
var imgTexture = THREE.ImageUtils.loadTexture( "environment/floor.jpg" );

function getPixel( x, y ){
//what is the code to do this?
return colorPixel;
}

Hope someone can help. Thanks!