forked from kleinerm/Psychtoolbox-3
-
Notifications
You must be signed in to change notification settings - Fork 0
AlphaImageDemo
Justin Ales edited this page Jul 31, 2018
·
3 revisions
Display a gaussian masked image, locked to the cursor position,
using the Screen('DrawTexture') command.
This illustrates an application of OpenGL Alpha blending by displaying
an image masked with a gaussian transparency mask.
In each frame, first the image is drawn. Then a texture acting as a
transparency mask is drawn "over" the image, leaving only selected
parts of the image.
Please note that we only use two textures: One holding the image,
the other defining the mask.
see also: PsychDemos, MovieDemo, DriftDemo
Path Retrieve current version from GitHub | View changelog
Psychtoolbox/PsychDemos/AlphaImageDemo/AlphaImageDemo.m