esdalmaijer / PyGaze

an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments
www.pygaze.org
GNU General Public License v3.0
671 stars 211 forks source link

Text colour ignored in draw_text() when using pygame backend #92

Closed ischtz closed 6 years ago

ischtz commented 7 years ago

Hi Edwin,

I noticed that when using the pygame backend, the colour attribute of draw_text() is ignored and text is always rendered in the foreground color due to this line in pygamescreen.py:

txtsurf = font.render(lines[lnr], antialias, self.fgc)

When I change the third argument to colour everything works as expected. It's a tiny change, but I'll make it a pull request anyway to become a little more familiar with Github :wink:

esdalmaijer commented 6 years ago

Fixed with #100, which incorporated #93. Thanks! :)