Jump to content

  • Log In with Google      Sign In   
  • Create Account


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