setting

v0.0.2
fill(r, g, b, [a]);

Set the fill color for shapes

Arguments

rThe red byte
gThe green byte
bThe blue byte
[a]The alpha byte

Can also accept a hexadecimal or color name as string

fill(255, 150, 40);
square(200, 200, 64);
See fill in setting.h
strokeWeight(weight);

No description

Arguments

weightThe line width in pixels

trokeWeight(8);
ine(200, 200, mouseX, mouseY);
See strokeWeight in setting.h
noFill();

Disable fill

See noFill in setting.h
stroke(r, g, b, a);

Set the stroke color for shapes

Arguments

rThe red byte
gThe green byte
bThe blue byte
aThe alpha byte

Only implemented for line and circle

See stroke in setting.h
noStroke();

Disable stroke
Only implemented for line and circle

See noStroke in setting.h
textSize(size);

Set the font size

Arguments

sizeThe size of the font in pixels

If this is called using fonts, make sure to call textSize after calling textFont

See textSize in setting.h
textFont(font);

Set the font family

Arguments

fontThe font value returned when using loadFont

function setup()
  createWindow(600, 600);

  myfont = loadFont('path/to/myfont.ttf');
end

function draw()
  background(51);

  textFont(myfont);
  text('Hello world!', 100, 200);
end
See textFont in setting.h