Page 1 of 1

My brain is turning circles! Please help T.T

PostPosted: Fri Jun 25, 2010 9:07 am
by Hblade
Dude I'm so confused at this! I am adding onto my Iw, (Into window) function, now you can add patterns, such as lines or squares to the window, okay? Problem is, I couldnt seem to set the darn transparency of the lines / patterns, nor could I set the color using setpen, so I removed setpen all together and O.O! It still apears as black and dark NOTHING I do can change it T.T

Any ideas as to why this would happen?

Current code: (Dont say anything about using case instead, I already know lol)
Code: Select all
setpen(189, 0, 0, .99, 1);
    if (Pattern == 0)
    {
        for (i=3;i<height-3;i+=3)
        {
            moveto(3, i);
            lineto(width-4, i);
        }
    }
    if (Pattern == 1)
    {
        for (i2=4;i2<width-4;i2+=3)
        {
            moveto(i2, 3);
            lineto(i2, height-4);
        }
    }
    if (Pattern == 2)
    {
        for (i2=4;i2<width-4;i2+=3)
        {
            moveto(i2, 3);
            lineto(i2, height-4);
        }
        for (i=3;i<height-3;i+=3)
        {
            moveto(3, i);
            lineto(width-4, i);
        }
    }


Previous Code:
Code: Select all
    if (Pattern == 0)
    {
        setpen(189, 0, 0, .99, 1);
        for (i=3;i<height-3;i+=3)
        {
            moveto(3, i);
            lineto(width-4, i);
        }
    }
    if (Pattern == 1)
    {
        setpen(189, 0, 0, .99, 1);
        for (i2=4;i2<width-4;i2+=3)
        {
            moveto(i2, 3);
            lineto(i2, height-4);
        }
    }
    if (Pattern == 2)
    {
        setpen(189, 0, 0, .99, 1);
        for (i2=4;i2<width-4;i2+=3)
        {
            moveto(i2, 3);
            lineto(i2, height-4);
        }
        setpen(189, 0, 0, .99, 1);
        for (i=3;i<height-3;i+=3)
        {
            moveto(3, i);
            lineto(width-4, i);
        }
    }


The reason it is .99 is because I was testing it out, I even tried making it 189, 0, 0 but its still Black T.T

Re: My brain is turning circles! Please help T.T

PostPosted: Fri Jun 25, 2010 11:16 am
by Bee-Ant
Use 0.99 instead of .99
And since it's 0.99 (almost 1), the lines are so transparent, try to use 0.8

Re: My brain is turning circles! Please help T.T

PostPosted: Fri Jun 25, 2010 11:27 am
by Hblade
Tried didnt work o.o

Hblade wrote:The reason it is .99 is because I was testing it out, I even tried making it 189, 0, 0 but its still Black T.T

Re: My brain is turning circles! Please help T.T

PostPosted: Fri Jun 25, 2010 11:45 am
by Bee-Ant
It worked here...
I think it's your GE bug