# Number of vertices of polygons in pavlovia

**URL:** https://discourse.psychopy.org/t/number-of-vertices-of-polygons-in-pavlovia/22142
**Category:** Online experiments
**Created:** [April 8, 2021, 2:43pm UTC](https://discourse.psychopy.org/t/number-of-vertices-of-polygons-in-pavlovia/22142 "2021-04-08T14:43:47Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![bets](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/bets/32/13075_2.png) [@bets](https://discourse.psychopy.org/u/bets)
#### Post date: [April 8, 2021, 2:43pm UTC](https://discourse.psychopy.org/t/number-of-vertices-of-polygons-in-pavlovia/22142/1 "2021-04-08T14:43:47Z")

</div>

The resolution of the polygons I created in the experiment is high when I run psychopy, but drops when I run it in pavlovia. Even if I increase the number of vertices, they look corrupt in pavlovia. How can I fix this problem? Thanks in advance.  
Here are the properties of the circles:

 ![bcircle2_11 Properties 4_8_2021 5_37_41 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/d/a/da78b72b38d84d6461d836807526ae1534164414.png) ![wc_2 Properties 4_8_2021 5_37_30 PM](https://us1.discourse-cdn.com/flex002/uploads/psychopy/original/3X/c/9/c934343e9f13756806425f23b55c18c871511f2b.png)

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [April 8, 2021, 6:57pm UTC](https://discourse.psychopy.org/t/number-of-vertices-of-polygons-in-pavlovia/22142/2 "2021-04-08T18:57:25Z")

</div>

Looking at previous questions on this topic (search blurred online for example) I have to ask what version of PsychoPy are you using?

---

<div class="post-metadata">

### Author: ![bets](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/bets/32/13075_2.png) [@bets](https://discourse.psychopy.org/u/bets)
#### Post date: [April 8, 2021, 7:11pm UTC](https://discourse.psychopy.org/t/number-of-vertices-of-polygons-in-pavlovia/22142/3 "2021-04-08T19:11:32Z")

</div>

Thanks, I am using v2020.2.0.

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [April 8, 2021, 7:55pm UTC](https://discourse.psychopy.org/t/number-of-vertices-of-polygons-in-pavlovia/22142/4 "2021-04-08T19:55:04Z")

</div>

That’s quite a buggy version. I’d recommend upgrading to 2020.2.10.

---

<div class="post-metadata">

### Author: ![bets](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/bets/32/13075_2.png) [@bets](https://discourse.psychopy.org/u/bets)
#### Post date: [April 8, 2021, 8:09pm UTC](https://discourse.psychopy.org/t/number-of-vertices-of-polygons-in-pavlovia/22142/5 "2021-04-08T20:09:13Z")

</div>

Thank you so much for your suggestion. If I update, do I need to make a lot of changes and fixes? I’m afraid to upgrade it because I started collecting data in Pavlovia with this version.

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [April 8, 2021, 8:15pm UTC](https://discourse.psychopy.org/t/number-of-vertices-of-polygons-in-pavlovia/22142/6 "2021-04-08T20:15:19Z")

</div>

Are you using.thisN or similar for anything?

Generally within sub versions (2020.1, 2020.2, 2021.1) there are only improvements. Things break between sub versions due to new features.

---

<div class="post-metadata">

### Author: ![bets](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/bets/32/13075_2.png) [@bets](https://discourse.psychopy.org/u/bets)
#### Post date: [April 8, 2021, 8:27pm UTC](https://discourse.psychopy.org/t/number-of-vertices-of-polygons-in-pavlovia/22142/7 "2021-04-08T20:27:44Z")

</div>

I’m just using the codes below.  
testphase.finished=True  
psychoJS.quit();  
round = function(num, n=0) { return +(Math.round(num + (“e+” + n)) + (“e-” + n)); }  
if mouse.isPressedIn(ccircle):

---

<div class="post-metadata">

### Author: ![wakecarter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wakecarter/32/5753_2.png) [@wakecarter](https://discourse.psychopy.org/u/wakecarter)
#### Post date: [April 8, 2021, 9:37pm UTC](https://discourse.psychopy.org/t/number-of-vertices-of-polygons-in-pavlovia/22142/8 "2021-04-08T21:37:08Z")

</div>

You may need to delete round from code\_JS because it gets added automatically from around 2020.2.5 and there’s an error if it gets defined twice.

---

<div class="post-metadata">

### Author: ![bets](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/bets/32/13075_2.png) [@bets](https://discourse.psychopy.org/u/bets)
#### Post date: [December 9, 2021, 3:32pm UTC](https://discourse.psychopy.org/t/number-of-vertices-of-polygons-in-pavlovia/22142/9 "2021-12-09T15:32:37Z")

</div>

I upgraded psychopy to 2020.2.10. However, the circles are still jagged in pavlovia. What else can I do to fix it?
