Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Bug TexPlay: Always white colors
- By Andrek Date 2012-02-28 11:24 Edited 2012-02-28 14:12
Hello, I have a bug with TexPLay is that when I use the command:

x = 50
y = 50
color = rand(100) > 50 ? :red : [1, 0, 0, 1]
@image.pixel(x, y, color)


Does not change the pixel to red, it always changes to white. Please help.

Edit:

Problem resolved:

x = 50
y = 50
color = rand(100) > 50 ? :red : [1, 0, 0, 1]
@image.pixel(x, y, :color => color)


When I set the color to use I do so: :color => color.
Up Topic Gosu / Gosu Exchange / Bug TexPlay: Always white colors

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill