Warning: This demo locked up my OS and I had to force-restart. Chrome 25/OSX 10.8/Mac Pro Desktop, Early 2008.
Particle effects in JavaScript
51–60 of 73 posts
Re: Particle effects in JavaScript
#52Re: Particle effects in JavaScript
#53Re: Particle effects in JavaScript
#54Re: Particle effects in JavaScript
#55Dear author: If you refactor the object/array/Float32Array instantiation in the redraw loop out into one-off allocations you will see a remarkably improvement in performance in terms of garbage-collection.
Re: Particle effects in JavaScript
#56Re: Particle effects in JavaScript
#57I did some experimenting to make particles dance to the beat of music if anyone is interested: http://trapcity.tv
Works perfect on Version 30.0.1599.101 Chrome.
http://www.youtube.com/watch?v=W5R4GFbXPvY
edit: added link to OfficialTrapCity
Re: Particle effects in JavaScript
#58What are the different rendering modes referenced by the help text? I couldn't detect any difference after hitting the space bar. Very cool effect!
Re: Particle effects in JavaScript
#59Earlier quoted context omitted.
Strange, I get no particle effects. When I check out the chrome console I find: Uncaught TypeError: Cannot set property 'innerHTML' of null
Browser info?
In chrome canary I also get:
Invalid CSS property value: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%,rgba(0,0,0,0.33)), color-stop(100%,rgba(0,0,0,0.75)))
and the same error as found in in standard chrome.
Re: Particle effects in JavaScript
#60Earlier quoted context omitted.
Strange, I get no particle effects. When I check out the chrome console I find: Uncaught TypeError: Cannot set property 'innerHTML' of null
Browser info?
I believe the problem is your time() method on line 189 of script.js; there's no element with id "time".