Canvas Light (WIP)
Posted: Thu Feb 19, 2015 1:29 am
So, I was bored and decided to try and make canvas light =D
So far... looks interesting.
So far... looks interesting.
void soft_light_inverted(int X, int Y, int R, int G, int B, double A, double rad, int smooth)
{
double i, i2;
moveto(X, Y);
setpen(R, G, B, A, 5+smooth);
for(i=0;i<pi*2;i+=pi/rad/(pi/5))
{
for(i2=0;i2<rad;i2+=4)
{
setpen(R, G-(i2/rad), B-(i2/rad), 1-min((A+(i2/rad)), .8), 4);
putpixel(X+cos(i)*i2, Y+sin(i)*i2);
}
}
}
Hblade wrote:seen it nice job dude =D hehe
Hblade wrote:Sure you can =D I'd like to see the results lol O:
Hblade wrote:So, I was bored and decided to try and make canvas light =D