# Display Issue with Parametric Shapes in Latest MWorks Nightly Build

**URL:** <https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049>\
**Category:** Support\
**Created:** [October 9, 2024, 10:57pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049 "2024-10-09T22:57:46Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ahmad\_Pourmohammadi](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Ahmad\_Pourmohammadi](https://mworks.discourse.group/u/Ahmad_Pourmohammadi)\
**Post date:** [October 9, 2024, 10:57pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/1 "2024-10-09T22:57:46Z")

</div>

Hi Chris,

After updating to the latest Nightly build version of MWorks, we’ve noticed a change in the way our parametric shapes are displayed. There’s a small boundary line that appears along the right and bottom borders of the shapes at certain sizes. I’ve attached a video of our task where you can see this issue.  
We’re using the following code to display our stimulus:

stimulus\_group target\_stimulus {  
stimulus/parametric\_shape target\_para\_stimulus(  
alpha\_multiplier = stimulus\_alpha\_multiplier  
vertices = shape\_list[stimulus\_id-1]  
color = stimulus\_color\_r, stimulus\_color\_g, stimulus\_color\_b  
x\_size = stimulus\_size  
vertex\_coord\_range = stimulus\_vertex\_range  
use\_antialiasing = true  
margin\_pixels = 1  
max\_size\_x = 20  
max\_size\_y = 20  
rotation = stimulus\_rotation  
x\_position = stimulus\_x; y\_position = stimulus\_y  
deferred = yes)  
}

queue\_stimulus (target\_stimulus[stimulus\_type])  
update\_display ()

We use both queue\_stimulus and live\_queue\_stimulus to display our stimuli across different protocols.  
Do you think this issue could be caused by the update? And if so, how can we fix it? Thanks for your help!

Best,  
Ahmad

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 10, 2024, 1:34pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/2 "2024-10-10T13:34:10Z")

</div>



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 10, 2024, 1:34pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/3 "2024-10-10T13:34:10Z")

</div>



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 10, 2024, 1:34pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/4 "2024-10-10T13:34:10Z")

</div>



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 10, 2024, 1:35pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/5 "2024-10-10T13:35:24Z")

</div>



---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 10, 2024, 1:37pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/6 "2024-10-10T13:37:14Z")

</div>

Hi Ahmad,

Thanks for reporting this. I can reproduce the issue on my system, too.

I did make a few changes relatively recently that may have caused this problem. Let me investigate and get back to you.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![Ahmad\_Pourmohammadi](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Ahmad\_Pourmohammadi](https://mworks.discourse.group/u/Ahmad_Pourmohammadi)\
**Post date:** [October 10, 2024, 1:49pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/7 "2024-10-10T13:49:57Z")

</div>

Thanks again for your support.

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 11, 2024, 4:37pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/8 "2024-10-11T16:37:07Z")

</div>

Hi Ahmad,

I think I’ve figured this out. It looks like a recent change exposed an older error in the parametric shape drawing code.

I’m pretty sure I’ve fixed the problem, but I want to take a little time to make sure I got it right (and to fix any other stimulus types with similar problems). I will try to get the fix in to the nightly build early next week.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![Ahmad\_Pourmohammadi](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@Ahmad\_Pourmohammadi](https://mworks.discourse.group/u/Ahmad_Pourmohammadi)\
**Post date:** [October 11, 2024, 5:56pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/9 "2024-10-11T17:56:46Z")

</div>

Hi Chris,

Awesome, Thanks again.

Best,  
Ahmad

---

<div class="post-metadata">

**Author:** ![Chuyi\_Su](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Chuyi\_Su](https://mworks.discourse.group/u/Chuyi_Su)\
**Post date:** [October 11, 2024, 7:24pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/10 "2024-10-11T19:24:22Z")

</div>

Hi Chris,

Thank you for your quick response!  
We are at a critical moment to collect data right now. If the issue might not be resolved by early next week, would you recommend rolling back to the last nightly build version as a temporary solution?

Thank you again!

Best,  
Chuyi

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 11, 2024, 9:07pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/11 "2024-10-11T21:07:38Z")

</div>

Hi Chuyi,

The change that exposed the parametric shape drawing bug has been in the nightly build since late May, so you’ll need a build from before then. Probably the best thing would be to use the [MWorks 0.13](https://mworks.github.io/news/2024/05/02/0.13-released/) release build.

Cheers,  
Chris

---

<div class="post-metadata">

**Author:** ![Chuyi\_Su](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Chuyi\_Su](https://mworks.discourse.group/u/Chuyi_Su)\
**Post date:** [October 11, 2024, 9:37pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/12 "2024-10-11T21:37:13Z")

</div>

Thank you for the info Chris!

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 16, 2024, 12:39pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/13 "2024-10-16T12:39:37Z")

</div>

Hi Ahmad & Chuyi,

This issue should be fixed in the current [nightly build](https://mworks.github.io/downloads/). When you have a chance, can you please try it out and confirm that the problem is gone?

Thanks,  
Chris

---

<div class="post-metadata">

**Author:** ![Chuyi\_Su](https://avatars.discourse-cdn.com/v4/letter/c/49beb7/32.png) [@Chuyi\_Su](https://mworks.discourse.group/u/Chuyi_Su)\
**Post date:** [October 16, 2024, 8:15pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/14 "2024-10-16T20:15:05Z")

</div>

Hi Chris,

Thank you for your email! The problem has been resolved by the current nightly build, and everything is now working smoothly.

Thank you for your time!

Best,  
Chuyi

---

<div class="post-metadata">

**Author:** ![cstawarz](https://yyz1.discourse-cdn.com/flex031/user_avatar/mworks.discourse.group/cstawarz/32/3_2.png) [@cstawarz](https://mworks.discourse.group/u/cstawarz)\
**Post date:** [October 28, 2024, 4:23pm UTC](https://mworks.discourse.group/t/display-issue-with-parametric-shapes-in-latest-mworks-nightly-build/1049/15 "2024-10-28T16:23:10Z")

</div>


