I'm using Shady to display images (PILLOW images) in a loop. For that I'm using the following commands:
Shady.Require( 'numpy', 'Image' )
w = Shady.World( )
s = w.Stimulus( imList )
s.frame = lambda t: t * 60
Where imList is a list of 60 PIL images. Somehow, Shady doesn't produce anything on my screen. But, if I reduce the size of the list to 17, then it works.
Shady.Require( 'numpy', 'Image' )
w = Shady.World( )
s = w.Stimulus( imList[0:17] )
s.frame = lambda t: t * 60
I've no idea what is going on. I'm new to Shady and there is not much documentation that I can read to understand what is going on. I just want to display 60 images (at 60 FPS) in a loop. I thought the above code should do it. But it doesn't work. Any help would be highly appreciated. I've been stuck on this for a couple of days now. Also, why does
s.frame = lambda t: t * 60
mean 60 FPS? I'm not sure I completely understand that as well. I tried to look for some explanation of s.frame and the lambda function but couldn't find an answer.
Thanks for your attention!
Best regards.