function alpha = pix2deg(pixel,Gparams)

pixelSize = Gparams.ScreenWidth/Gparams.ScreenResX;

stimSize = pixel*pixelSize;

alpha = 2*atand(stimSize/(2*Gparams.DistToScreen));

return

end