Loading...
Logo
Processing Forum

PShape

in Programming Questions  •  4 months ago  
taken straight from  Daniel Shiffmans PShape tutorial:

Copy code
  1. PShape rectangle;

  2. void setup() 
  3. {  
  4.   size(640,360,P2D);
  5.   rectangle = createShape(RECT,-50,-25,100,50);
  6. }

  7. void draw() 
  8. {
  9.   background(51);
  10.   translate(mouseX,mouseY);
  11.   shape(rectangle);
  12. }
throws an error: "cannot convert from PShape to PShape"

did i miss something here? 


www.morishuz.com
www.videoreactive.com
www.electrovision-cinema.com

Replies(2)

Re: PShape

4 months ago
ok, solved it. it's apparently not a good idea to name the sketch PShape.... ;-)

www.morishuz.com
www.videoreactive.com
www.electrovision-cinema.com

Re: PShape

4 months ago
A classical... (was about to suggest looking for that; I marked your answer as "best", to mark the topic as solved)