<<<<<<<<<<<<<<<<<

time_generator(oscar) OSCAR time_generator(oscar)

NAME

time_generator

DESCRIPTION

Time_generator is an object in animation system that generates data object that maps unit interval (time) onto one dimensional data that corresponds to acceleration- deacceleration pattern of most natural motions.

SUPERCLASS

object

INSTANCE VARIABLES

file_name is the name of the file for storing the data, default is temp.scr.

data_name is the name of generated data object, default is time_data.

speedup_to is the time (between zero and one) at which acceleration decreases to zero, default is 0.3.

slowdown_at is the time (between speedup_to and one) at which acceleration becomes negative, default is 0.7.

points is the number of points generated in the data object, default is 10.

MESSAGES

data_name=argument sets instance variable data_name to the argument.

data_name? returns the value of instance variable data_name.

file_name=argument sets instance variable file_name to the argument.

file_name? returns the value of instance variable file_name.

generate! generates data objects and writes it to the file named file_name.

slowdown_at=argument sets instance variable slowdown_at to the argument.

slowdown_at? returns the value of instance variable slowdown_at.

speedup_to=argument sets instance variable speedup_at to the argument.

speedup_to? returns the value of instance variable speedup_at.

EXAMPLE

The LYMB script time_generator new: generator_one points= 20 speedup_at= .2 slowdown_at= .8 generate! ; time_data print!

displays

data new: time_data /* @ 320470 */ dimension= 1 default_tension = 0.000000 default_bias = 0.000000 default_continuity= 0.000000 ; time_data t= 0.000000 value=(0.000000) t= 0.090909 value=(0.027008) t= 0.181818 value=(0.116676) t= 0.272727 value=(0.226197) t= 0.363636 value=(0.335718) t= 0.454546 value=(0.445239) t= 0.545454 value=(0.554761) t= 0.636363 value=(0.664282) t= 0.727273 value=(0.773803) t= 0.818182 value=(0.883324) t= 0.909090 value=(0.972992) t= 1.000000 value=(1.000000) ; time_data t=1.000000;

SEE ALSO


Please send comments and suggestions to
consult@rpi.edu