The width of the display canvas in pixels.
<display>
display.name.canvasWidth
Read Only
extent
The canvasWidth property returns the width of canvas as determined by the constraints specified in the canvasSize, canvasPosition, and canvasAspectRatio attributes.
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>