Canvas Light (WIP)
 Posted: Thu Feb 19, 2015 1:29 am
Posted: Thu Feb 19, 2015 1:29 amSo, I was bored and decided to try and make canvas light =D
So far... looks interesting.
			So far... looks interesting.
 Posted: Thu Feb 19, 2015 1:29 am
Posted: Thu Feb 19, 2015 1:29 am Posted: Thu Feb 19, 2015 8:53 pm
Posted: Thu Feb 19, 2015 8:53 pm
 Posted: Thu Feb 19, 2015 8:57 pm
Posted: Thu Feb 19, 2015 8:57 pm Posted: Thu Feb 19, 2015 9:24 pm
Posted: Thu Feb 19, 2015 9:24 pm Posted: Thu Feb 19, 2015 9:28 pm
Posted: Thu Feb 19, 2015 9:28 pm Posted: Thu Feb 19, 2015 11:57 pm
Posted: Thu Feb 19, 2015 11:57 pm
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);
        }
    }
}
 Posted: Fri Feb 20, 2015 12:11 am
Posted: Fri Feb 20, 2015 12:11 am Posted: Fri Feb 20, 2015 12:20 am
Posted: Fri Feb 20, 2015 12:20 am Posted: Fri Feb 20, 2015 12:31 am
Posted: Fri Feb 20, 2015 12:31 amHblade wrote:seen it nice job dude =D hehe
 Posted: Fri Feb 20, 2015 12:33 am
Posted: Fri Feb 20, 2015 12:33 am Posted: Fri Feb 20, 2015 1:57 am
Posted: Fri Feb 20, 2015 1:57 amHblade wrote:Sure you can =D I'd like to see the results lol O:
 Posted: Fri Feb 20, 2015 2:19 am
Posted: Fri Feb 20, 2015 2:19 am Posted: Fri Feb 20, 2015 2:30 am
Posted: Fri Feb 20, 2015 2:30 am
 Posted: Fri Feb 20, 2015 1:58 pm
Posted: Fri Feb 20, 2015 1:58 pmHblade wrote:So, I was bored and decided to try and make canvas light =D
 Posted: Fri Feb 20, 2015 3:54 pm
Posted: Fri Feb 20, 2015 3:54 pm