# The stroke color is mixed with the fill color

**URL:** <https://discourse.processing.org/t/the-stroke-color-is-mixed-with-the-fill-color/24058>\
**Category:** Coding Questions\
**Created:** [September 22, 2020, 7:55pm UTC](https://discourse.processing.org/t/the-stroke-color-is-mixed-with-the-fill-color/24058 "2020-09-22T19:55:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![san1](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@san1](https://discourse.processing.org/u/san1)\
**Post date:** [September 22, 2020, 7:55pm UTC](https://discourse.processing.org/t/the-stroke-color-is-mixed-with-the-fill-color/24058/1 "2020-09-22T19:55:55Z")

</div>

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.

 ![stroke](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/2/29f78edc6e7c03ec165c0fd747bad3925661d8f2.png)

```auto
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);
}

```

---

<div class="post-metadata">

**Author:** ![noel](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/noel/32/213_2.png) [@noel](https://discourse.processing.org/u/noel)\
**Post date:** [September 22, 2020, 8:29pm UTC](https://discourse.processing.org/t/the-stroke-color-is-mixed-with-the-fill-color/24058/2 "2020-09-22T20:29:10Z")

</div>

I’ve tested in Chrome (actualized) It’s black on my pc.
