up Inquisit Language Reference

canvasWidth property

The width of the display canvas in pixels.

Member of

<display>

Syntax

display.name.canvasWidth

Read Only

Type

extent

Remarks

The canvasWidth property returns the width of canvas as determined by the constraints specified in the canvasSize, canvasPosition, and canvasAspectRatio attributes.

Examples

The following displays the value of canvasWidth in a text stimulus:

<text myText>
/ items= ("canvasWidth = <% display.canvasWidth %>")
</text>

The following displays the value of canvasWidth in an instruction page:

<page myPage>
canvasWidth = <% display.canvasWidth %>
</page>

Copyright Millisecond Software, LLC. All rights reserved.