ive come up whit a cool code that makes a cool gradient!
1. create a canvas actor named me canvas.
2. make it the same size as the view,
3 on create actor, add this code:
- Code: Select all
int Count;
for(Count=0; Count<height*4; Count+=4)
{
setpen(Count/4, Count/2, Count/3, 0, 5);
moveto(0, Count/4);
lineto(width, Count);
}
and its done!
change the division where the color inside and it makes other color.
NOTE:
this was tested and aproved on a 640x480 screen resolution, it dosnt give the same result on a smaller screen and there is too much white when bigger.