You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to alternate colors so I used this loop
float j;
do {
if(j==.8){
//b for blue
b = uv.y+j;
j -= .1;
} else if ( j== .4){
b = uv.y+j;
j -= .1;
} j=.4;
} while (j!=1.0);
It freezes and crashes on compile. I wanted to use
ctime for a delay but is there a better way I
should be doing this, I an Very new too OpenGL
The text was updated successfully, but these errors were encountered:
I'm sorry, I don't quite understand what you're trying to do. If you're simply trying to alternate colors, it's better to use math instead of conditional statements.
I am trying to alternate colors so I used this loop
float j;
do {
if(j==.8){
//b for blue
b = uv.y+j;
j -= .1;
} else if ( j== .4){
b = uv.y+j;
j -= .1;
} j=.4;
} while (j!=1.0);
It freezes and crashes on compile. I wanted to use
ctime for a delay but is there a better way I
should be doing this, I an Very new too OpenGL
The text was updated successfully, but these errors were encountered: