Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / Ruby: what are the possible alpha modes?
- By treetrouble Date 2009-10-21 00:19
for example, in...

draw_line(x1, y1, c1, x2, y2, c2, z=0, mode=:default)
draw_triangle(x1, y1, c1, x2, y2, c2, x3, y3, c3, z=0, mode=:default)
draw_quad(x1, y1, c1, x2, y2, c2, x3, y3, c3, x4, y4, c4, z=0, mode=:default)

assuming that mode = alpha mode

thanks
- By adamsanderson Date 2009-10-21 01:22
The other option is :additive, give it a shot.  It basically adds the color channels together, good for special effects.
- By treetrouble Date 2009-10-21 03:41
nice, thanks!
Up Topic Gosu / Gosu Exchange / Ruby: what are the possible alpha modes?

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill