Skip to content

Commit 66c5306

Browse files
authored
Merge pull request #175 from easycoder/dev
Add documentation for 'animate'
2 parents 74eed0a + 7174ed0 commit 66c5306

File tree

6 files changed

+50
-3
lines changed

6 files changed

+50
-3
lines changed

iwsy/resources/help/action-animate.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
~page:contents:Contents~
2+
3+
# The `animate` action
4+
5+
This action a visual effect on the content of a bock. At present there is only pan/zoom, used to create the "Ken Burns" effect that makes still photos look a little like video.
6+
7+
This action performs a visual effect on one or more blocks. Each of the blocks has content which contains a special Markdown extension that defines the visual effect to be applied. The format is
8+
9+
~m:~vfx:100% manarola~~
10+
11+
where ~m:manarola~ is the name of the effect in the ~m:VFX~ section of the script. You can have any number of animations in a single content block, though more than one is usually over-doing it.
12+
13+
The parameters needed for the effect are as follows:
14+
15+
~img:https://easycoder.github.io/iwsy/resources/help/img/animate.png|100%~
16+
17+
Here the type is defined as a ~m:panzoom~ (it's currently the only option available). The name then follows. Next we have the aspect ratio of the container that holds the image being manipulated, the URL of that image and the duration of the effect in seconds.
18+
19+
The effect works by magnifying the image and using the container as a "window" onto a part of the magnified image. By moving the window and altering the magnification we achieve the pan and zoom effect.
20+
21+
There are 2 groups of 3 parameters, one for the start of the effect and the other for the end. Each of the sets of values are as follows:
22+
23+
1. the size (magnification).
24+
1. the offset of the left-hand edge of the image from the left-hand edge of the container. Negative values cause the image to position to the left of the container, so in general the values will all be negative or zero.
25+
1. the offset of the top edge of the image from the top of the container. Negative values cause the top of the image to position above the container.
26+
27+
In all cases the values are expressed as a percentage of the container width or height.
28+
29+
The animation follows a cosine function that causes it to start slowly, accelerate towards the middle of the effect the deccelerate towards the end, giving a smooth start and finish.
30+
31+
To use a sequence of images, each with its own Ken Burns specification, fade down the current item and fade up the next, in each case with the ~m:continue~ flag set to ~m:yes~, then follow these with the animation itself. With the right fade duration this will give you a smooth transition during the period the animation is moving at its slowest. You may also have to ensure the images are preloaded (cached) to avoid stuttering as a new animation starts.
32+
33+
You can see an example running on the ~page:iwsy:Home~ page of this documentation.
34+
35+
Next: ~page:action-pause:Pause~

iwsy/resources/help/action-transition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ When the color of text is to be changed, the size values in both **Block** and *
2929

3030
Fades and other animated effects run at 25 frames/sec, as a compromise between visual smoothness and processing requirements.
3131

32-
Next: ~page:action-pause:Pause~
32+
Next: ~page:action-animate:Animate~

iwsy/resources/help/contents.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@
3030

3131
~page:action-transition:The "transition" action~
3232

33+
~page:action-animate:The "animate" action~
34+
3335
~page:action-pause:The "pause" action~
3436

3537
~page:action-chain:The "chain" action~

iwsy/resources/help/img/animate.png

17.4 KB
Loading

iwsy/resources/help/project.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
The right-hand side of the screen holds the Project panel. When you start up - or after you click the ~img:https://easycoder.github.io/iwsy/resources/icon/new.png|icon~(New) button - it looks like this:
66
~img:https://easycoder.github.io/iwsy/resources/help/img/project.png|100%~
77

8-
There are 3 main sections.
8+
There are 5 sections.
99

1010
## 1 - Steps
1111

@@ -28,3 +28,13 @@ It's common to use the same layout for multiple slides in a presentation, and on
2828
This lists all the content text items used in your presentation. Each one is named. In the step editor you assign content to blocks by clicking names from a drop-down list. This makes it much easier to see what is where than by having the full text visible at each point.
2929

3030
All content text is written using **_MarkDown_**; a format that is mostly plain text, plus simple markup tags to define headers and other text features. ~iwsy~ provides a set of custom MarkDown extensions that define image and other attributes. These help pages are written using the same system. See ~page:addContent:Adding content~.
31+
32+
## 4 - VFX
33+
34+
VFX stands for "Visual Effects". At this time we only have one; a pan and zoom. With this you can implement the "Ken Burns Effect", named after its inventor, a New York based documentary film maker. The effect is widely used in television to bring movement to still photos, without which the eye rapidly gets bored. The amount of movement can be very slight but the eye is tricked into thinking it's looking at video. The effect is demonstrated on our ~page:iwsy:Home and Introduction~ page.
35+
36+
This section is where you supply all the data needed to achieve the effect for a single image.
37+
38+
## 5 - JSON
39+
40+
In this section you have a listing of the entire script as a JSON file. You can view and edit any of the sections or copy/paste.

iwsy/resources/help/quickstart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Click the **Blocks** button over in the right-hand panel, then click the ~img:ht
1414

1515
~img:https://easycoder.github.io/iwsy/resources/help/quickstart/newblock.png|100%~
1616

17-
Most of these default values are fine as they are; they describe a block that occupies the whole window area. Let's just change the ~m:name~ property to ~m:background~ and the ~m:background~ property to ~m:url('https://easycoder.github.io/iwsy/resources/help/quickstart/SemoigoDawn.jpg')~. When the presentation runs, the effect will be to display a full-size image. This is what the panel should look like now:
17+
Most of these default values are fine as they are; they describe a block that occupies the whole window area. Let's just change the ~m:name~ property to ~m:background~ and the ~m:background~ property to ~m:url('https://easycoder.github.io/iwsy/resources/help/quickstart/SemoigoDawn.jpg')~. Be sure to use single-quotes as shown. When the presentation runs, the effect will be to display a full-size image. This is what the panel should look like now:
1818

1919
~img:https://easycoder.github.io/iwsy/resources/help/quickstart/first-block.png|100%~
2020

0 commit comments

Comments
 (0)