Make a p5 sketch / canvas not scale when resizing the browser window (contain)

Hello there,

I am new to this forum. I am a Graphic Designer (and programming noob).

I tried to implement a p5.js sketch into uikit (A lightweight and modular front-end framework for developing fast and powerful web interfaces) so that in the end, my sketch is displayed within the browser window.

But, when I resize my Browser Window to simulate a tablet or a mobile device, the sketch (canvas) scales with the window. Is there a option to avoid this ... like "contain" in responsive behaviour?

I want (in my example) that there are less moving circles visible when I rescale the browser window. I do not want, that the cicles get smaller when I rescale the browser window.

You can find my emample on www.ga-analytics.de

Ty for your help,

newbie

Answers

Sign In or Register to comment.