just put this on any event or on the create actor event of your canvas actor.

- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(possize, possize, 0, 0, Size);
putpixel(150, 150);
}
you can also play around with the stuff to make it different colours.
the one I posted was for a yellow light.
WHITE:
- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(possize, possize, possize, 0, Size);
putpixel(150, 150);
}
RED:
- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(possize, 0, 0, 0, Size);
putpixel(150, 150);
}
GREEN:
- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(, possize, 0, 0, Size);
putpixel(150, 150);
}
BLUE:
- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(0, 0, possize, 0, Size);
putpixel(150, 150);
}
PURPLE:
- Code: Select all
int Size, possize;
possize = 0;
Size = 255;
for(Size = 255; Size > 0; Size--, possize++)
{
setpen(possize, 0, possize, 0, Size);
putpixel(150, 150);
}
ect.
