GSDP:GAM100/CProcessing/strokeWeight()

From Inside
Jump to: navigation, search

strokeWeight()

Description

The function strokeWeight() modifies the thickness of the next drawn shape's stroke.

Parameters

strokeWeight(width)

  • width - (float) the thickness to set the stroke to

Example

void update() 
{
  // Sets the stroke of the next drawn shape to 1
  strokeWeight(1.0f);

  // Draw a circle at the origin
  circle(0, 0, 10.0f);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>