added penColor() and penSize() functions
This commit is contained in:
parent
1fe8572d1d
commit
dbd22abbd4
|
@ -51,7 +51,12 @@ function pendown(){
|
|||
function penup(){
|
||||
drawing=false;
|
||||
}
|
||||
|
||||
function penSize(weight=1){
|
||||
strokeWeight(weight);
|
||||
}
|
||||
function penColor(c){
|
||||
stroke(c);
|
||||
}
|
||||
function randint(max=100){
|
||||
//default returns int between 0 and 100
|
||||
return int(random(max))
|
||||
|
|
Loading…
Reference in New Issue