up Inquisit Language Reference

canvasaspectratio attribute

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

Member of

<defaults>

Syntax

/ canvasaspectratio = (width, height)

Parameters

width The width of the aspect ratio.
height The height of the aspect ratio.

Remarks

The canvasaspectratio attribute can be used in combination with the canvasassize 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.