Reference   Language | Libraries | Comparison | Changes

ArduinoGraphics : ArduinoGraphics class

stroke()

Description

Set the stroke color of drawing operations.

Syntax

YourScreen.stroke(r, g, b)
YourScreen.stroke(color)

Parameters

  • r: red color value (0 - 255)
  • g: green color value (0 - 255)
  • b: blue color value (0 - 255)
  • color: 24-bit RGB color, 0xrrggbb

Returns

Nothing

Example


YourScreen.beginDraw();
YourScreen.clear();
YourScreen.stroke(255, 0, 255);
YourScreen.noFill();
YourScreen.rect(0, 0, YourScreen.width(), YourScreen.height());
YourScreen.endDraw();

See Also



Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.