The color of the shape.
<button> <clearScreen> <shape>
object.name.color
Read/Write
color
Can be set to any named color (e.g., brown, green, blue, lightyellow, ...).
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>