stroke: Set the color used to draw lines around shapes

Description Usage Arguments Examples

Description

Set the color used to draw lines around shapes

Usage

1
stroke(sketch, colorstring)

Arguments

sketch

A p5 sketch.

colorstring

A hex color string.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 

p5() %>%
  stroke("#FF0000") %>%
  rect(10, 10, 20, 30) %>%
  stroke("#0000FF") %>%
  rect(20, 30, 30, 20)


## End(Not run)

seankross/p5 documentation built on May 30, 2019, 8:17 a.m.