![]() This lets you move the dancing circles animation around the video without any effort!! Render(myvideo pathname="dancing_circles_layer.gif") Then we act! on it just like on a regular Object. First we wrap it in a macro: myvideo = Video(500, 500) We can now use layers to move around our previous animation. Black has become more in vogue since Tutorial 1! □ This will result in the same animation but with different colors. Render(colored_planets, pathname="colored_planets.gif") Now we have all the ingredients for a colored animation where we switched the color of the moving circles. Red_ball = Object(JCircle(O, 25, color = c1, action = :fill), start_pos + (100, 0))Īct!(red_ball, Action(anim_rotate_around(2π, start_pos)))īlue_ball = Object(JCircle(O, 25, color = c2, action = :fill), start_pos + (200, 80))Īct!(blue_ball, Action(anim_rotate_around(2π, 0.0, begin ![]() function dancing_circles(c1, c2, start_pos = O) Now let's add small changes to the dancing circles to make it into a function and add arguments to choose the colors of the two circles each time. # Different from tutorial one now background in black and pen is whiteĬircle.(points, 2, :fill) # draws a circle for each point using broadcasting As usual we start with all the functions we already defined in Tutorial 1: using Javis In Tutorial 1, we learned how to make circles go around:įor this tutorial, we are going to reuse this animation but create an artistic animation similar to the works of famous American pop artist, Andy Warhol - here is an example:ĭollar Signs by Andy Warhol Let's Add Some Color!įirst let's adjust the dancing circles animation to allow for color tweaking. Instead we can let Javis do all that manual composition for us. This way we do not need to worry about all the interactions between different parts of a video by acting on them one by one. In Javis a is the implementation of this idea, it allows you to enclose the content of an animation and to work on it - act! on it - just like on a single Object. It can assist in easing the creation of complex videos or images composed of several simpler parts. They can then be worked on separately while the software takes care of the interactions between them. The goal of layers is to make it easy to divide an animation into different parts. The image above comes from and the simple explanation of layers came from here: An example of this is shown stacking of layers is shown below: When you stack the sheets on top of each other, the overall picture is formed. You can imagine layers as transparent plastic sheets with images drawn on them. This has been great and you should be proud of your Javis skills so far! However, what if I told you, there is a way to make multiple animations in one animation? □Īnd the way to do that? Layers - specifically, What Even Are Layers? And What's a layer is a common concept used in several animation toolkits and image editing software. Edit on GitHub Tutorial 8: Fun with Layers! An Intro to far, we have been using Javis to create one animation at a time.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |