Upload image file:
OR
Make blank image:
x
CREATE BLANK
Error occured. Check console (F12) for an error. Error pixels are displayed as purple-black texture.
/* you have: r - red channel (from 0 to 255) g - green channel (from 0 to 255) b - blue channel (from 0 to 255) a - alpha (from 0 to 255) x - X coordinate from left-top y - Y coordinate from left-top w - width h - height pixels - a data array, which contains width*height*4 elements, looks like: R,G,B,A,R,G,B,A... For example: R channel for pixel at (x=20;y=30) == pixels[(30*w+20)*4] or B channel for pixel at (x=10;y=2) == pixels[(2*w+10)*4+2] variables: WHITE, BLACK, TRANSPARENT */ return {r: r, g: g, b: b, a: a};
RUN