Millisecond Forums

draw a Circular sector

https://forums.millisecond.com/Topic22811.aspx

By Nakayama Yao - 11/5/2017

HI, Inquisit community,
 I wonder if I can draw a fan-shaped "shape" under Inquisit's language, with a certain central angle (say 45 deg) and a radius (say 500 pixel).
Any sample script would be appreciated.
Thank you for your attention.
:)
By Dave - 11/6/2017

Nakayama Yao - Sunday, November 5, 2017
HI, Inquisit community,
 I wonder if I can draw a fan-shaped "shape" under Inquisit's language, with a certain central angle (say 45 deg) and a radius (say 500 pixel).
Any sample script would be appreciated.
Thank you for your attention.
:)

I'm not entirely sure what you mean by a "fan-shaped" shape; what you can certainly do, though, is use Inquisit's trigonometric functions to calculate positions for a set of stimuli making up your overall shape -- the Spatial Delayed Response Task in the library would illustrate some of that (there, stimuli are arranged in a circle with a fixed radius, and drawn and certain angles). Otherwise, you might be better off drawing the desired shape in your preferred graphics application and then simply have Inquisit display it as a regular <picture>.