I drew black as the stroke color and set 1 as the weight, but the stroke color is not black. Please refer to the picture and code below.
var canvasWidth = 640;
var canvasHeight = 360;
var blockSize = 30;
function setup()
{
var canvas = createCanvas(canvasWidth, canvasHeight);
background(255,255,255);
noLoop();
}
function putBlock(x, y)
{
strokeWeight(1);
stroke(0);
fill(255,0,0);
rect(x * blockSize, y * blockSize, blockSize, blockSize);
}
function draw()
{
putBlock(0,0);
}