up Inquisit Language Reference

shape element

The shape element defints a single shape stimulus and specifies how the shape is presented.

Syntax

<shape shapename>
/ animation = circle(duration, loopcount, start, xcenter, ycenter, radius) or path(duration, loopcount, x1, y1, x2, y2, x3, y3, ...) or points(duration, loopcount, x1, y1, x2, y2, x3, y3, ...)
/ color = (red value, green value, blue value) or color name or color value
/ dropposition = (x value, y value) or (x constant, y constant)
/ dropsource = value or boolean
/ droptarget = property or boolean
/ erase = true(red value, green value, blue value) or true(color value) or true(color name) or false
/ halign = alignment
/ height = integer expression
/ hposition = x expression
/ monitor = integer
/ onprepare = [expression; expression; expression; ...]
/ position = (x value, y value)
/ shape = shapename
/ size = (width variable, height variable)
/ valign = alignment
/ vposition = y expression
/ width = integer expression
</shape>

Properties

shape.shapename.bottom
shape.shapename.color
shape.shapename.colorblue
shape.shapename.colorgreen
shape.shapename.colorred
shape.shapename.currentindex
shape.shapename.currentvalue
shape.shapename.dropsource
shape.shapename.droptarget
shape.shapename.dropx
shape.shapename.dropy
shape.shapename.erase
shape.shapename.erasecolorblue
shape.shapename.erasecolorgreen
shape.shapename.erasecolorred
shape.shapename.height
shape.shapename.hposition
shape.shapename.itemcount
shape.shapename.items
shape.shapename.left
shape.shapename.monitor
shape.shapename.name
shape.shapename.nextindex
shape.shapename.nextvalue
shape.shapename.playthrough
shape.shapename.resetinterval
shape.shapename.right
shape.shapename.skip
shape.shapename.stimulusonset
shape.shapename.timestamp
shape.shapename.top
shape.shapename.typename
shape.shapename.vposition
shape.shapename.width

Functions

None.

Remarks

Shape stimuli provide a convenient means of overwriting previously presented stimuli during a presentation sequence, or for drawing background to be presented behind other stimuli.

Examples

The following defines a blue circle that appears on the right side of the screen:

<shape bluecircle>
/ shape = circle
/ color = (0, 0, 200)
/ position = (80%, 50%)
</shape>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.