
<defaults>
/ txbgcolor = (175, 175, 255)
/ screencolor = (255, 255, 255)
/ txcolor = (175, 175, 255)
/ inputdevice = mouse
</defaults>

<data>
/ file = "mailto:seandr@millisecond.com"
</data>


***********************insects/flowers Discrimination*****************

<counter vcounter>
/ select = noreplace(10-90)
</counter>

<counter hcounter>
/ select = noreplace(20-80)
</counter>

<shape small>
/ shape=circle
/ size=(30,30)
/ hposition = hcounter
/ vposition = vcounter
</shape>

<shape medium>
/ shape=circle
/ size=(55,55)
/ hposition = hcounter
/ vposition = vcounter
</shape>

<shape large>
/ shape=circle
/ size=(80,80)
/ hposition = hcounter
/ vposition = vcounter
</shape>

<shape start>
/ shape=circle
/ size=(60,60)
/ position = (50, 50)
/ color=(0,255,0)
</shape>

*************************** Instructions *******************
<instruct>
/ nextlabel = "Next"
/ lastlabel = "Start"
/ inputdevice = mouse
/ font = ("Arial", -19, 700, 0, 34)
</instruct>

<page begin>
Fitt's Law Demo
^^Fitts' Law is a human factors model to account for the time it takes to point at something, based on the size and distance of the target object. The law states that big targets at close distance are acquired faster than small targets at long range, or, more precisely:
^^T = k log2(D/S + 0.5), k ~ 100 msec. 
^T = time to move the hand to a target 
^D = distance between hand and target 
^S = size of target 

</page>

<page begin2>
^^To test Fitt's law, you will be shown a series of circles on the screen. Your task is to click on the circles as fast as you can!
</page>

<page summary>
^^Performance summary:
^^Average response time with the small circle: <% trial.small.meanlatency %> milliseconds.
^^Average response time with the medium circle: <% trial.medium.meanlatency %> milliseconds.
^^Average response time with the large circle: <% trial.large.meanlatency %> milliseconds.
</page>

<page end>
^^^Demo complete!
</page>


*************************** insects/flowers**********************

<trial start>
/ correctresponse = (start)
/ stimulusframes = [1=start]
</trial>

<trial small>
/ correctresponse = (small)
/ stimulusframes = [1=small]
</trial>

<trial medium>
/ correctresponse = (medium)
/ stimulusframes = [1=medium]
</trial>

<trial large>
/ correctresponse = (large)
/ stimulusframes = [1=large]
</trial>

<block fitts>
/ preinstructions = (begin2)
/ trials = [1,3,5,7,9,11,13,15,17,19, 21, 23, 25, 27, 29=start; 2,4,6,8,10,12,14,16,18,20, 22, 24, 26, 28, 30 = noreplace(small, medium, large)]
</block>

************************** Experimental Code ************************

<expt>
/ preinstructions = (begin)
/ blocks = [1=fitts]
/ postinstructions = (summary, end)
</expt>


