animation library and processing using array