# Shape has weird behavior with 4 parameters

**URL:** <https://discourse.processing.org/t/shape-has-weird-behavior-with-4-parameters/15129>\
**Category:** Coding Questions\
**Created:** [November 1, 2019, 11:01pm UTC](https://discourse.processing.org/t/shape-has-weird-behavior-with-4-parameters/15129 "2019-11-01T23:01:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dregni](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/dregni/32/6956_2.png) [@Dregni](https://discourse.processing.org/u/Dregni)\
**Post date:** [November 1, 2019, 11:01pm UTC](https://discourse.processing.org/t/shape-has-weird-behavior-with-4-parameters/15129/1 "2019-11-01T23:01:29Z")

</div>

Hoï !

So I was trying to have a generic body class so it could represent the body of all my objects for some simulation but then this happened :

```auto
  void display()
  {
    shapeMode(CENTER);
    shape(body, 50, 50, 100, 100); // this doesn't work
    shape(body, 350, 350); // this works
  }

```

I tried some different formatting but everytime with x and y it works even without them but if I try with a b c d it doesn’t work anymore, the program runs but doens’t print anything. What have I done wrong ?

---

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [November 2, 2019, 1:07am UTC](https://discourse.processing.org/t/shape-has-weird-behavior-with-4-parameters/15129/2 "2019-11-02T01:07:07Z")

</div>

so we must dig deeper,  
here ( win 10 / 64bit / processing 3.5.3 / it works with

```auto
/* start from Scale Shape. Illustration by George Brower. */
//https://discourse.processing.org/t/shape-has-weird-behavior-with-4-parameters/15129

PShape bot;

void setup() {
  size(500, 500);
  bot = loadShape("bot1.svg");
  shapeMode(CENTER);
} 

void draw() {
  background(200,200,0);
  shape(bot, 50, 50, 100, 100); // this does work here
  shape(bot, 350, 350);
}

```

 ![shape_resize](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/3/3957b09a7f224a98044d219cb616bc0b8579331e.png)

how about you share your shape?  
and give more system info…
