added penColor() and penSize() functions

This commit is contained in:
lee2sman 2021-01-21 04:44:54 -05:00
parent 1fe8572d1d
commit dbd22abbd4
1 changed files with 6 additions and 1 deletions

View File

@ -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))