The text element defines a set of text stimuli and determines how items are selected and displayed on the screen.
text.name.fontHeight
text.name.textBGColor
text.name.textBGColorBlue
text.name.textBGColorGreen
text.name.textBGColorRed
text.name.textColor
text.name.textColorBlue
text.name.textColorGreen
text.name.textColorRed
text.name.voiceOver
text.name.borderColor
text.name.borderWidth
text.name.bottom
text.name.dropSource
text.name.dropTarget
text.name.dropX
text.name.dropY
text.name.eraseColor
text.name.eraseColorBlue
text.name.eraseColorGreen
text.name.eraseColorRed
text.name.height
text.name.heightPct
text.name.heightPx
text.name.hPosition
text.name.left
text.name.monitor
text.name.right
text.name.rotation
text.name.scale
text.name.top
text.name.vPosition
text.name.width
text.name.widthPct
text.name.widthPx
text.name.x
text.name.xPct
text.name.xPx
text.name.y
text.name.yPct
text.name.yPx
text.name.currentIndex
text.name.currentItem
text.name.currentItemNumber
text.name.currentValue
text.name.erase
text.name.itemCount
text.name.items
text.name.nextIndex
text.name.nextValue
text.name.playThrough
text.name.resetInterval
text.name.selectedCount
text.name.selectedIndex
text.name.selectedValue
text.name.skip
text.name.stimulusOnset
text.name.timestamp
text.name.unselectedCount
text.name.name
text.name.typeName
text.name.containsPoint
text.name.appendItem
text.name.clearItems
text.name.insertItem
text.name.item
text.name.removeItem
text.name.resetSelection
text.name.setItem
The text element is used to display text stimuli on the screen. Typically, a single text element consists of a set of text items, and it specifies the method by which a given item is selected for presentation on a trial (e.g., randomly, in sequential order, linked to a different stimulus element, etc.). The text element also controls the appearance of the text on the screen, including font, size, color, justification, and location.
The following presents white text on a blue background:
<text myText>
/ items = ("inquisit rocks")
/ txColor = (0, 0, 255)
/ txBGColor = (255, 255, 255)
</text>
The following defines a set of text items to be selected in sequential order:
<text presidents>
/ items = ("George Washington", "John Adams", "Thomas Jefferson")
/ select = sequence
</text>