|
Pages: [1]
|
 |
|
Author
|
Topic: VID - ANIM Style? (Read 756 times)
|
|
KenSingleton
|
Can anyone show me how the ANIM style works in VID? I cannot find any documentation or examples that use it. Regards, Ken.
|
|
|
|
|
Logged
|
|
|
|
|
PeterWood
|
Ken
The only hint of any explanation I could find is a reference to anim demo on Anton Rolls's 'rebsite' back in 2004. It may be something completely different though.
You can try to see if its still at Rebol.com/sites/anton via View/Desktop.
Peter
|
|
|
|
|
Logged
|
|
|
|
|
KenSingleton
|
Thanks Peter for the suggestion. I have just tried it but none of Anton's folders open but the folders on other sites do! Regards, Ken.
|
|
|
|
|
Logged
|
|
|
|
|
PeterWood
|
Ken I've asked your question on the Rebol Mailing List. The first response was from Rosemary De Dear : This started me with some animation: REBOL[File %dot.r] {anim frames first found in title: "je marche seul" author: "Emmanuel Garbe"} view layout [ backcolor snow anim frames [%d1.gif %d2.gif %d3.gif %d4.gif] 150x150 rate 15 ] I've attached the four little dot pictures - d1.gif ... etc. ...but I can't attach the images here... ...perhaps you could join the Rebol Mailing List at http://www.rebol.com/discussion.htmlor view messages in the mailing list archive at http://www.rebol.orgPeter
|
|
|
|
|
Logged
|
|
|
|
|
PeterWood
|
Ken
Anton Rolls came up with some helpful hints. Here's some examples:
Let's see some examples using the ANIM style sub-dialect:
view layout [anim frames [%path/to/image1.png %path/to/image2.png]]
view layout [anim rate 4 frames [%path/to/image1.png %path/to/image2.png]]
view layout [anim frames [%image1.png %image2.png %image3.png] rate 10]
As you can see, the FRAMES and RATE sub-dialect words can be specified in any order.
It is difficult to get the ANIM style to work initially, with simple code such as:
view layout [anim]
Anton suggested taking a look at the source of anim to see how it works - it is written in Rebol - and gave some useful hints how to do so easily.
If you like to take a look at the source, you could either let me know in this forum and I'll pass on the details or take a look at Anton's message at Rebol.org.
|
|
|
|
|
Logged
|
|
|
|
|
KenSingleton
|
Peter, once again a big thankyou! The word I was missing was the 'frames' word, now it all works and animating is as simple as the rest of Rebol.
I will take your advice and subscribe to the mailing list.
Thanks too to Anton!
Regards, Ken.
|
|
|
|
|
Logged
|
|
|
|
|
|
Pages: [1]
|
|
|
 |
News: 01-09-08 Alpha version of REBOL 3 has been released!
2295 Posts in 593 Topics by 3754 Members
Latest Member: MPShetfoept
|