function pixels = deg2pix(alpha,Gparams)

pixelSize = Gparams.ScreenWidth/Gparams.ScreenResX;

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

pixels = round(stimSize/pixelSize);

return

end