Jump to content


Photo

draw_rectangle_color([...]); Don't work


  • Please log in to reply
1 reply to this topic

#1 tice666

tice666

    GMC Member

  • GMC Member
  • 13 posts
  • Version:GM:HTML5

Posted 23 May 2012 - 11:00 PM

Hello!
I've got a little problem by importing a GM8.1 game to GM:HTML5

//Draw background
var col1, col2;
col1 = make_color_rgb(r[0], g[0], b[0]);
col2 = make_color_rgb(r[1], g[1], b[1]);
draw_rectangle_color(view_xview, view_yview, view_xview + view_wview, view_yview + view_hview, col1, col1, col2, col2, false);

The color don't interpolate between the other color's,
only the first color col1 is drawn on the the rectangle?
  • 0

#2 tice666

tice666

    GMC Member

  • GMC Member
  • 13 posts
  • Version:GM:HTML5

Posted 23 May 2012 - 11:16 PM

Okay, i figured out, that WebGL is needed for stuff like that.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users