up Inquisit Language Reference

color property

The color of the shape.

Member of

<button> <clearScreen> <shape>

Syntax

object.name.color

Read/Write

Type

color

Remarks

Can be set to any named color (e.g., brown, green, blue, lightyellow, ...).

Examples

The following trial sets the color of a shape based on whether or not the response to the previous trial was correct:

<trial feedback>
/onTrialBegin = { if (trial.test.correct == true) shape.feedback.color = green; else shape.feedback.color = red; }
/ stimulusTimes = [0=feedback]
</trial>

Copyright Millisecond Software, LLC. All rights reserved.