Not logged inGosu Forums
Forum back to libgosu.org Help Search Register Login
Up Topic Gosu / Gosu Exchange / What is mode in Window#draw_triangle of Ruby implementation
- - By ucode Date 2012-11-21 20:54
I'm drawing triangles with:
draw_triangle(x1, y1, c1, x2, y2, c2, x3, y3, c3, z = 0, mode = :default)

I'm very curious what options there are for mode. The documentation never mentions anything about it as far as I can see.
Parent - By Spooner Date 2012-11-21 23:48
The supported modes are :default (alpha blend), :add (add colours) and :multiply (multiply colours). Look up additive and multiplicative blending if you don't know what those actually do.
Up Topic Gosu / Gosu Exchange / What is mode in Window#draw_triangle of Ruby implementation

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill