Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


saransh

Member Since 13 Apr 2014
Offline Last Active Apr 30 2014 09:23 PM

Topics I've Started

fade out effect

30 April 2014 - 07:36 AM

So I have this polygon and I want to give it a fade out effect it needs to go from dark blue at top to light blue at the bottom... how do I do it?





glColor3f(0.0, 0.0, 1.0);
glBegin(GL_POLYGON);
glVertex2f(0.6,-1.0);
glVertex2f(2.0, -1.0);
glVertex2f(2.0,0.13);
glVertex2f(0.6, 0.13);
glEnd();

watercyfle

13 April 2014 - 10:31 PM

Hi guys I'm a student from India. I need your help...I was asked to create a project on 2d watercycle pls can someone give me a source code for it....please

PARTNERS