We are about to switch to a new forum software. Until then we have removed the registration on this forum.
hi people,
i want to have a p5 sketch as fixed background on a html page. everything is working well, but the background canvas is not fixed and scrolls up with the content. I thought the line canvas.style('position', 'fixed');
can fix this but it doesnt work. does someone know what i do wrong?
thank you! you are great anyways
Answers
Are you sure stored a reference to the sketch canvas in the
canvas
variable?The positioning your canvas tutorial might help ;)
thank you! it works now. i have seen this before, i was wondering why it doesnt work the way i asked? is there a mistake in the syntax?
https://Forum.Processing.org/two/discussion/26277/canvas-parent-returns-type-error#Item_1