up Inquisit Language Reference

scale property

The scale factor to apply to the size of the stimulus.

Member of

<button> <clock> <html> <picture> <shape> <text> <video>

Syntax

visualstimulus.name.scale

Read/Write

Type

number

Remarks

The default is 1.0 scale. Values smaller than 1.0 reduce the size of the stimulus while values larger than 1.0 increase the size.

This property is useful if you want to increase or decrease the size of stimuli throughout runtime.

Examples

The following displays the scale of a text stimulus:

<text myText>
/ items = ("scale = <% text.foo.scale %>")
</text>

The following scales a picture stimulus to 1.5 times it size:

<picture targets>
/ items = targetitems
/onPrepare = {this.scale = 1.5;}
</picture>

Copyright Millisecond Software, LLC. All rights reserved.