up Inquisit Language Reference

canvassize attribute

The canvassize attribute defines the maximum width and height of the bounding rectangle within which visual stimuli are positioned on the screen.

Member of

<defaults>

Syntax

/ canvassize = (width variable, height variable)

Parameters

width variable The width of the rectangle in pixels (default), percent, or points.
height variable The height of the rectangle in pixels (default), percent, or points.

Remarks

The canvassize attribute can be used in combination with the canvasaspectratio and canvasposition attributes to define a rectangle on the screen relative to which all visual stimuli and sized and positioned. These attributes that the relative size and position of stimuli on the screen remains the same across monitors of different shapes and sizes..

Examples

The following ensures that visual stimuli are presented in a rectangle that has the same proportions as an 8.5 x 11 inch sheet of paper and with margins around the screen no smaller than 20%.

<defaults>
/ canvassize=(80%, 80%)
/ canvasaspectratio=(8.5, 11)
</defaults>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.