problem with canvas
I'm having a quite weird problem currently.
I am trying to port
react-snowfall
to solid (https://github.com/apollo79/solid-snowfall) and therefore working with a canvas
.
The code is, simplified like this:
Where the createSnowFlakes
function just creates an array of snowflakes and handles config updates.
The weird thing now is, that everything gets executed, the loop works and the snowflake.draw()
methods is called, but nothing appears on the screen.
Maybe this is a problem with the context or the canvas ref? I don't get itGitHub
GitHub - apollo79/solid-snowfall: A solid component that creates a ...
A solid component that creates a snowfall effect. Contribute to apollo79/solid-snowfall development by creating an account on GitHub.
1 Reply
Okay, I fixed this now. It had to do with a memo I used where I shouldn't have. I don't really get why that didn't work, but anyway it works now