![]() ![]() This canvas uses "LiveButtonColor", "strokeWidth" and "radius" as a parameters of the drawing method.ĮXAnimationLayer, subclass of CALayer, implements "color", "radius" and "width" properties used to drive the animation. NSTimer created in EXAnimationViewController periodically calls the updateClock(_:) (Objective-C: updateClock:) method to adjust the values of those properties and redraw the view.Īnimation with custom animatable property of CALayerĬheck out the "LiveButton" canvas in the "Animations" tab of the "Example.pcvd" document. These properties are then used as a parameters when calling the StyleKit drawing methods inside the overriden drawRect(_:) (Objective-C: drawRect:) method. This canvas uses "WatchColor", "hrs", "mins" and "secs" as a parameters of the drawing method.ĮXClockView, subclass of UIView, implements "clockColor", "hours", "minutes" and "seconds" as IBInspectable properties. Please, check out the "Example.pcvd" document and the "Animations" tab in the example project.Ĭheck out the "Clock" canvas in the "Animations" tab of the "Example.pcvd" document. Changing the values of these parameters and re-drawing your code will animate your drawing. These parameters can be colors, gradients, shadows, images, texts, points, sizes, rectangles and booleans. PaintCode can generate drawing methods with parameters (read about Variables to learn more). ![]() ![]() How can I animate drawings made in PaintCode? ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |