| Reference | Downloads | Github

Rotate line around edge (like a clock hand)

OS (e.g. Win10): Mac OS 10.14.6
PsychoPy version (e.g. 1.84.x): 3.1.5

What did you try to make it work?:

I have a line stimulus and want to rotate it each frame by a constant. It does that, but rotates around its centre. Instead, I want to rotate it around its edge – effectively like a clock hand. Is that possible in builder?

@Marc_Buehner, take a look at the clock stimuli demo in PsychoPy Coder demos, it shows you how to offset the pivot point by defining the shape vertices - here I have created the line using Builder, then overwritten line parameters in the code component. Here is a version created in Builder.

rotatingLine.psyexp (8.8 KB)