Increase dot size (point())

Hi,

with this code I draw some points:

size(400, 400);
noSmooth();
point(120, 80);
point(340, 80);
point(340, 300);
point(120, 300);

So they are drawn with the size of one pixel.
Is there a way to increase the dot size?

Thank you,
f

Hello

There are resources here to help you:

Take a look at this reference:

point() / Reference / Processing.org < In the Related (bottom) section there is a reference to stroke()

stroke() / Reference / Processing.org < In the Related section you will find your solution!

Master list of references:

:)

5 Likes

this seems to work:

size (333, 333);
strokeWeight(25);
point(55, 55);
strokeWeight(1);//reset

But the way to go is:

3 Likes

There are several ways to do this.
Very interesting, thanks.
f

1 Like