The canvasAspectRatio attribute defines the relative height and width of the bounding rectangle within which visual stimuli are positioned on the screen.
<defaults>
Name | Type | Description |
---|---|---|
width | integer | The width of the aspect ratio. |
height | integer | The height of the aspect ratio. |
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..
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>