Skip to content

question: strudel + p5.js #376

Answered by felixroos
m-onz asked this question in Q&A
Discussion options

You must be logged in to vote

hello! @mikegao45 has started a discussion about this a while ago.

Would I need to make that transparent somehow?

nope, the editor and the canvas are already transparent, the background color comes only from the body. So you can just add a canvas to the body or use the existing one, which you can get with getDrawContext, see example.

There is also a new (and still experimental) onPaint method which helps drawing stuff related to haps (events) within the current time window called drawTime, which is currently fixed to [-2,2] but will probably be adjustable in the future.

let me know if you have any more questions

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by m-onz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #375 on January 15, 2023 17:44.