DESC...

DESC...

direct image link | download PNG | edit this image | share on r/pam

Description: window.addEventListener('dragover', function(e) { e.stopPropagation(); e.preventDefault(); }); window.addEventListener('drop', function(e) { e.stopPropagation(); e.preventDefault(); let file = e.dataTransfer.files[0]; if(file.type.match(/image.*/)) { let reader = new FileReader(); reader.onload = async function(e2) { let dataUrl = e2.target.result; let {rgbSamplesGrid, colorThatRepresentsTransparent} = await dataUrlToSamplesGrid(dataUrl); let samplesWidth = rgbSamplesGrid[0].length; let samplesHeight = rgbSamplesGrid.length; let x = e.pageX - $(editor.canvas).offset().left; let y = e.pageY - $(editor.canvas).offset().top; let gridX = Math.floor(x/editor.pixelSize); let gridY = Math.floor(y/editor.pixelSize); gridX -= Math.round(samplesWidth/2); gridY -= Math.round(samplesHeight/2); importSamplesToGridLocation(rgbSamplesGrid, gridX, gridY, colorThatRepresentsTransparent); } reader.readAsDataURL(file);


CREATOR ID: 583245
VIEWS: 23
AGE: 4 years old
BASED ON:

PIXEL ART GALLERY
PIXEL ART COMMUNITY
AI Pixel Art Generator
AI Painting Generator