cosmologicon / pygame-text

Convenience functions for drawing using the pygame.font module.
Other
84 stars 12 forks source link

`gcolor` option not working on python3 #1

Closed gentimouton closed 1 year ago

gentimouton commented 6 years ago

Hello, nice library! Out of the box, all examples work perfectly on python 2.7. However, on Python 3.6, using pygame 1.9.3, I get a ValueError: operands could not be broadcast together with shapes (58,) (117,59) from line 315 (array[:,:,j] = ((1.0 - m) * array[:,:,j] + m * gcolor[j]).astype(array.dtype) ). This issue goes away if I remove the gcolor argument from the last example. Cheers!

cosmologicon commented 1 year ago

Don't use surfarray anymore so hopefully this isn't an issue any longer.