Questions tagged [shady]

a Python framework and two-dimensional graphics engine, used by programmers in neuroscience to generate and present psychophysically-accurate visual stimuli and manipulate them in real time (hence, in the same space as PsychToolbox, PsychoPy or VisionEgg)

Shady is for programmers who work in neuroscience, especially vision science. It is a two-dimensional graphics engine and Python framework, for generating and presenting psychophysically-accurate visual stimuli, and for manipulating them in real time with minimal CPU usage and minimal "boilerplate" coding. For more information, see https://pypi.org/project/Shady

12 questions
2
votes
1 answer

How to set a custom FPS limit on shady engine

I am currently using shady on a 144 HZ monitor and I'm trying to limit the shady world refresh rate to 90 Hz. From my understanding the only way to reduce the FPS is by using the "SetSwapInterval" which cuts the framerate by half or third. Is there…
Ltes
  • 23
  • 3
2
votes
1 answer

Custom transfer function (or LUT) in Shady

How could I implement custom color transfer functions? I want to carefully control for the color of my visual stimuli. I've seen that I can set a channel-by-channel gamma, but what if my transfer function is not well fit by a typical gamma…
m_d
  • 48
  • 5
2
votes
1 answer

Shady fails with SyntaxError after osx reinstall

I reinstalled my computer, Shady used to work before (I was barely getting to grips with how it works tbh, but it worked). Now I can't seem to even start anything. I am a novice This is what I get, when I try to run the demo. I assume its not to do…
1
vote
0 answers

install Shady on Ubuntu 18.04: GLIBC_2.29 not found

I need to install Shady (I am installing the latest version: 1.13.0) on a computer with Linux (Ubuntu 18.04). The install works but then I get the following error when trying to use the module: OSError: /lib/x86_64-linux-gnu/libm.so.6: version…
m_d
  • 48
  • 5
1
vote
1 answer

Is it possible to share an animation callback in Shady?

I am trying to use Shady to present a sequence of image frames. In the past I've done this by assigning to the stimulus.page attribute an animation callback. In the callback, which is called by Shady once for each monitor frame, I first check a…
cq70
  • 21
  • 6
0
votes
1 answer

Shady engine in python doesn't seems to display beyond 16 frames

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…
Shrini
  • 25
  • 7
0
votes
1 answer

Is there a way to temporarily pause all world/stimulus dynamics in Shady?

I have a Shady script for running an interactive program that involves numerous Stimulus objects with multiple dynamic properties. The World itself also has some dynamic properties. I need a way to temporarily stop the interactive program. I can…
swjm
  • 46
  • 5
0
votes
1 answer

Text alignment control in Shady

I'm using Shady to write some text on screen, and I'm wondering what would be the simplest way to control the alignment of the string. From my understanding, the align parameter in a Shady text object controls the paragraph alignment, but I'm…
cq70
  • 21
  • 6
0
votes
2 answers

LoadPage in Shady very slow on Linux Mint

I am trying to display a sequence of frames using Shady, but I'm running into difficulties. I'm looking at 25 frames, covering a 1080x1080 pixels area. The stimulus is grayscale, and I am doing luminance linearization off-line, so I only need to…
cq70
  • 21
  • 6
0
votes
2 answers

Controlling dynamic properties in Shady according to video frames not time

I am trying to use Shady to present a sequence of image frames. I'm controlling the flow from another machine, so that I first instruct the machine running Shady to present the first frame, and later on to run the rest of the frames. I create a…
cq70
  • 21
  • 6
0
votes
1 answer

Controlling frame-by-frame drawing in Shady

I'm struggling to understand how I can control the flow of what is being drawn on the screen by Shady. I'm used to Psychtoolbox, where you keep adding to a frame by drawing on the backbuffer, and then explicitly push it onto the screen with a call…
cq70
  • 21
  • 6
0
votes
1 answer

Presenting parts of a pre-prepared image array in Shady

I'm interested in migrating from psychtoolbox to shady for my stimulus presentation. I looked through the online docs, but it is not very clear to me how to replicate what I'm currently doing in matlab in shady. What I do is actually very simple.…
cq70
  • 21
  • 6