Need help with drawing task

Hi Chris,

We are trying to implement a task to draw lines between existing dots when the animal touches two dots in sequence. Can you please point us to the right code snippets for this? Is this possible to do in MWorks?

I attached a sample gif to demonstrate the task.
sample_drawing_task

Thanks,
Ko

Hi Ko,

Yes, that should be possible. I’ll put together an example and send it to you.

Cheers,
Chris

1 Like

Hi Ko,

I’ve attached an example that demonstrates drawing lines between touch targets. It’s a bit complicated, but hopefully it will make sense. If you have any questions, please let me know.

Cheers,
Chris
line_drawing.mwel (3.8 KB)