Quantcast
Channel: Processing Forum
Viewing all articles
Browse latest Browse all 1768

PShape method issues (update: resolved)

$
0
0
EDIT: RESOLVED (version issue - see below)

Hi all - running processing 2.0b3 and seem to be having issues calling the set methods. I keep getting errors that look like: "The method setStroke(int, int) in the type PShape is not applicable for the arguments (int)"

    1. PShape rectangle;
    2.  
    3. void setup() {
    4.   size(640,360,P2D);
    5.   rectangle = createShape(RECT,-50,-25,100,50);
    6.   rectangle.setStroke(color(255))
    7.   rectangle.setStrokeWeight(4);
    8.   rectangle.setFill(color(127));
    9. }

Viewing all articles
Browse latest Browse all 1768

Trending Articles