Ult
Featured
Urt
Ll Lr

Ult
Log in
Urt
Ll Lr


Ult
strokeWeight()
Urt

Description
Stroke weight changes the outline thickness of an ellipse or rectangle. By default the outline is one pixel thick, but changing the weight, changes the outlines thickness.


Example

void setup()
{
background(0,0,0);
stroke(255,255,255);
fill(0,0,255);
strokeWeight(4);
}

int pmouseX;

void loop()
{
gettouch();

if (mouseX != pmouseX)
{
background(0,0,0);
size(128,128);
stroke(255,255,255);
fill(0,0,255);
rect(mouseX-10,mouseY-10,4,2);
text((double)10,mouseX,mouseY);
rect(mouseX-10,mouseY+10,2,4);
line(mouseX+20,mouseY-10,mouseX+50,mouseY-30);
ellipse(mouseX+20,mouseY+30,6,6);
pmouseX=mouseX;
}

}




Edit History
Ll Lr


Get in touch if you have any questions, or ideas for something you want me to build.