You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vartwo=win.getContext('two');varcircle=two.makeCircle(-70,0,50);varrect=two.makeRectangle(70,0,100,100);circle.fill='#FF8000';rect.fill='rgba(0, 200, 255, 0.75)';vargroup=two.makeGroup(circle,rect);group.translation.set(two.width/2,two.height/2);group.scale=0;group.noStroke();// Bind a function to scale and rotate the group// to the animation loop.two.bind('update',function(frameCount){// This code is called everytime two.update() is called.// Effectively 60 times per second.if(group.scale>0.9999){group.scale=group.rotation=0;}vart=(1-group.scale)*0.125;group.scale+=t;group.rotation+=t*4*Math.PI;}).play();// Finally, start the animation loop
The text was updated successfully, but these errors were encountered:
https://two.js.org/#introduction
maybe even have context with same api as two?
The text was updated successfully, but these errors were encountered: