Rebol Talk Forum  |  REBOL Discussions  |  REBOL View  |  Topic: VID - ANIM Style?
Pages: [1] Print
Author Topic: VID - ANIM Style?  (Read 716 times)
KenSingleton
Newbie
*
Offline Offline

Posts: 8


View Profile
VID - ANIM Style?
« on: May 20, 2006, 05:46:20 AM »

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
Newbie
*
Offline Offline

Posts: 28


View Profile
Re: VID - ANIM Style?
« Reply #1 on: May 24, 2006, 10:11:05 AM »

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
Newbie
*
Offline Offline

Posts: 8


View Profile
Re: VID - ANIM Style?
« Reply #2 on: May 24, 2006, 02:11:04 PM »

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
Newbie
*
Offline Offline

Posts: 28


View Profile
Re: VID - ANIM Style?
« Reply #3 on: May 24, 2006, 09:13:01 PM »

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.html

or view messages in the mailing list archive at http://www.rebol.org

Peter
Logged
PeterWood
Newbie
*
Offline Offline

Posts: 28


View Profile
Re: VID - ANIM Style?
« Reply #4 on: May 25, 2006, 03:50:32 AM »

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
Newbie
*
Offline Offline

Posts: 8


View Profile
Re: VID - ANIM Style?
« Reply #5 on: May 25, 2006, 07:02:59 AM »

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] Print 
Rebol Talk Forum  |  REBOL Discussions  |  REBOL View  |  Topic: VID - ANIM Style?
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 30, 2008, 06:56:33 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2243 Posts in 587 Topics by 2012 Members
Latest Member: Rsfezgpe

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc