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:
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: