danzen / zimjs

ZIM JavaScript Canvas Framework - Code Creativity! Interactive Media For All.
Other
507 stars 47 forks source link

I wonder if this is doable in Zim #7

Closed markphd closed 7 years ago

markphd commented 7 years ago

I found this in Chrome experiment projects, I think it involves a lot of Math in here but no worries, I can learn little by little, however I would like to ask if this can be done in Zim.js?

Codepen: http://codepen.io/markphd/pen/PpKvMm Original source: http://workshop.chromeexperiments.com/examples/gui/#1--Basic-Usage

danzen commented 7 years ago

Hi Mark - sorry for the delay - missed that your post was here. That is a cool effect. Was just doing some work on a particle emitter that has a similar feel. http://zimjs.com/code/particles/ I expect that it can be done in ZIM as it lets you render dynamic images like other other canvas libraries.

markphd commented 7 years ago

Thanks @danzen - this is awesome! 👍

wiggleMyEars commented 7 years ago

Hi Dan, Loving your library! I have a 'I wonder if this is doable in Zen' request too. Is it possible with Zim.Frame to toggle between 'tagID' and 'Fit', i.e. to toggle full screen? Thanks again for this great library. James

danzen commented 7 years ago

Hi James - sorry, missed this one down here. Maybe I should just leave this thread here as it can apply to many things! ;-) That is a good idea to be able to do that - let me experiment...

danzen commented 7 years ago

http://zimjs.com/code/expand/ works pretty well. There are two frames and we put the content in a Container called shell. Then move the shell from one stage to the other. We hide and show the different html tags accordingly.

wiggleMyEars commented 7 years ago

Wow! Thank you that's totally brilliant! Loving your library, James