Always remain updated about current software development trends
To apply shadows withKineticJS, we can set the shadow property when we instantiate a shape, or we can use thesetShadow()method. Shadows can be defined with a color, blur, offset, and alpha.
To create a sprite animation withKineticJS, we can use theKinetic.Sprite()constructor which requires the following config object:
To create a solid, dashed, or dotted line withKineticJS, we can use theKinetic.Line()constructor which requires the following config object:
To save the stage as a JSON string withKineticJS, we can use thetoJSON()method.
To save the stage as a JSON string withKineticJS, we can use thetoJSON()method.
To select shapes by name withKineticJS, we can use theget()method using the.selector.
To select a shape by id withKineticJS, we can use theget()method using the#selector. Theget()method always returns an array of elements, even if we are selecting by id, and can also be used to select layers and groups.
To stop an animation withKineticJS, we can use thestop()method. We can also restart the animation be again callingstart().
To create a complex shape with KineticJS, we can group multiple simple shapes together with Kinetic.Group(). Groups can also be used to combine other groups. HTML5 Canvas Complex Shape using Groups Example with KineticJS Open in new window Code Editor...
To stop and resume a transition withKineticJS, we can use thestop()andresume()methods of a transition object.
c# .net dev intermediate asp.net windows sql beginner silverlight advanced c++ javascript architect sql server wpf mysql html5 mobile c#4.0 jquery