Dear all!
I’m trying to run an online experiment in which the subject has to draw some figures with the mouse (see GIF below).
Nothing really complicated: I created the python code, I imported in the builder, and now I’m trying to create the online experiment.
Everything is working, except I have an annoying closing effect, in which the code tries to close the polygon I create (run the online experiment and you’ll see it).
I checked: any browser does that.
Very nice job of what you’ve done so far! When this works I think we should definitely include it as a demo of what can be achieved with a bit of code (if that’s OK with you?)!
Amazing @jon! It’s working inserting closeShape: false .
Thanks a lot!
It’s strange that with python (builder or code) it’s working anyway, even if the default is closeShape=True.
Hey @jon, I have a working version in Python based on @rockNroll87q nice work. Happy to get working on the Builder implementation if you or @rockNroll87q are not planning on making a pull request.
Hi all - this functionality looks great. I’m wondering about this implementation though - it’s a little buggy. If you click on the demo above (and in my code), and move the mouse somewhat slowly with the mouse held down, the ‘shape’ draws with intermittent pixels (screen shot attached). The top line was drawn quickly and smoothly. The bottom line was drawn slowly and smooth, with increasing speed toward the end. But note, even where the drawing is smooth, there are gaps when direction is changing quickly.
I am having the same issue, using essentially exactly the same code as this, but javascript tries to close the shape even with closeShape:false. The experiment runs fine offline in python, but in javascript is dotted when moving the mouse slowly, and closes the shape by itself. The same thing happens when I use the new dedicated Brush component. With the brush component, the automatically generated javascript code states closeShape : false, but alas the shapes are still being closed!
Here is my experiment URL: