I assume that psychoJS.window.size returns the resolution in pixels. Is that what you wanted? If not then you probably need to write a “resize a rectangle so it’s the same size as a credit card” technique described elsewhere:
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Consistent image size across screens | 25 | 7572 | September 14, 2021 | |
| Retrieving window's size | 7 | 3658 | November 19, 2020 | |
| How can I scale my experiment to a participant's monitor? | 8 | 804 | November 3, 2022 | |
| Converting pixels to cm? | 10 | 262 | September 20, 2024 | |
| How to get user screen dimension information when running in Pavlovia? | 15 | 3447 | September 17, 2021 |