rbxb / place

a clone of r/place
GNU General Public License v3.0
84 stars 61 forks source link

Command to place a pixel #17

Closed ghost closed 1 year ago

ghost commented 1 year ago

So I have this script in main.js:

function autoDraw( ) {
//place pixel to canvas 
}
setInterval(autoDraw, 100);

This script should place a specific pixel every 100 milliseconds at a certain position, but I don't know what's the command to place a pixel. Can I know how to do this?