Skip to content
Snippets Groups Projects
Commit dfda7e31 authored by Marius Bilasco's avatar Marius Bilasco
Browse files

ajout gitignore

parent 1f4b7b23
No related branches found
No related tags found
No related merge requests found
**/sol**
**/sol**.js
**/sol**.html
GetPixelRGBATask=function(opt_options) {
this.x=opt_options.x;
this.y=opt_options.y;
this.output=opt_options.output;
}
GetPixelRGBATask.prototype.process=function(imageData) {
var pos=(this.y*imageData.width+this.x)<<2;
var r=imageData.data[pos];
var g=imageData.data[pos+1];
var b=imageData.data[pos+2];
var a=imageData.data[pos+3];
this.output.innerHTML=this.x+"x"+this.y+" : ";
this.output.innerHTML+="<font color='red'>"+r+"</font> | ";
this.output.innerHTML+="<font color='green'>"+g+"</font> | ";
this.output.innerHTML+="<font color='blue'>"+b+"</font> | ";
this.output.innerHTML+="<font color='gray'>"+a+"</font>";
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment