kernel = gpu.createKernel(
function(x) {
this.color(
(x * (this.thread.y + this.thread.x)) / 1024.0,
(x * (this.thread.y * this.thread.x)) / (1024.0 * 1024.0),
(x * (this.thread.y * 2 * this.thread.x)) / (1024.0 * 2),
1
);
},
{
output: [512, 512],
graphical: true
}
)