Page 1 of 4

Cool canvas Design (Easy to use)

PostPosted: Sun May 22, 2011 11:50 am
by Hblade
Features:
  • Sleak Look
  • Curved Edges
  • Easy coloring


Hi everybody :) Hidden here, I was making a canvas window design for my game, and when I made it, I just had to share it :) Don't worry, the screenshot isn't my game xD Anyways, take a look and if you want to use it, it's simple :) Copy and paste the code you see below into Global Code and your pretty much set! :D To use this function, type DRAWWIN(Border_red,Border_green,Boreder_blue, background_red, background_green, background_blue);

well, obviously you don't type all of that, you replace the "red green and blue' such as "border_red" and what not with a number. Example:
DRAWWIN(0, 177, 255, 0, 0, 70);
win_screen.jpg





Code:
Code: Select all
void DRAWWIN(int BR, int BG, int BB, int FR, int FG, int FB) {
    int i;
    erase(0, 0, 0, 1);
    setpen(BR, BG, BB, 0, 1);
    moveto(3, 0);
    lineto(width-6, 0);
    putpixel(2, 1);
    putpixel(1, 2);
    moveto(0, 3);
    lineto(0, height-5);
    putpixel(1, height-4);
    putpixel(2, height-3);
    moveto(3, height-2);
    lineto(width-5, height-2);
    putpixel(width-4, height-3);
    putpixel(width-3, height-4);
    moveto(width-3, height-5);
    lineto(width-3, 3);
    putpixel(width-4, 2);
    putpixel(width-5, 1);
    setpen(BR-155, BG-155, BB-155, 0, 1);
    moveto(4, 1);
    lineto(width-7, 1);
    putpixel(3, 2);
    putpixel(2, 3);
    moveto(1, 4);
    lineto(1, height-6);
    putpixel(2, height-5);
    putpixel(3, height-4);
    moveto(4, height-3);
    lineto(width-6, height-3);
    putpixel(width-5, height-4);
    putpixel(width-4, height-5);
    moveto(width-4, height-6);
    lineto(width-4, 4);
    putpixel(width-5, 3);
    putpixel(width-6, 2);
    setpen(FR, FG, FB, .70, 1);
    for (i=3;i<height-3;i++) {
        moveto(3, i);
        lineto(width-6, i);
                             }
    setpen(BR, BG, BB, 0, 16);
    putpixel(0, 0);
               }

Re: Cool canvas Design (Easy to use)

PostPosted: Sun May 22, 2011 2:00 pm
by savvy
this is pretty cool :D it has a techy feel to it. can be useful for graphical purposes, people should definately check this out.
+1!

Re: Cool canvas Design (Easy to use)

PostPosted: Sun May 22, 2011 3:05 pm
by lcl
Nice. :)
But how can this same topic be in game art section also and contain exactly same messages and messages sending times?? :shock: :lol:

Re: Cool canvas Design (Easy to use)

PostPosted: Sun May 22, 2011 4:44 pm
by MrJolteon
It was moved

Re: Cool canvas Design (Easy to use)

PostPosted: Sun May 22, 2011 5:07 pm
by Hblade
lol thanks

because it was moved :P like jolt said :D It was posted in game dev but I moved it to here

Re: Cool canvas Design (Easy to use)

PostPosted: Sun May 22, 2011 6:33 pm
by lcl
Hblade wrote:lol thanks

because it was moved :P like jolt said :D It was posted in game dev but I moved it to here

But it still exists in advanced topics. :P

Re: Cool canvas Design (Easy to use)

PostPosted: Sun May 22, 2011 8:03 pm
by SuperSonic
Wow this is awsome man :shock:
You may now celebrate your 100th point anniversary (I givs you 1) :wink:

Re: Cool canvas Design (Easy to use)

PostPosted: Sun May 22, 2011 8:19 pm
by Hblade
lol yay 100 :) thanks :D

Yeah, its a shadow copy Oo a link that directs you here xD Idk its strange Oo

Re: Cool canvas Design (Easy to use)

PostPosted: Sun May 22, 2011 8:30 pm
by SuperSonic
It's not in advanced topics anymore :D
I just checked :P

Re: Cool canvas Design (Easy to use)

PostPosted: Sun May 22, 2011 8:31 pm
by Hblade
yup lolz :D :)

Re: Cool canvas Design (Easy to use)

PostPosted: Sun May 22, 2011 9:29 pm
by lcl
Congratulations for your 100th point, H! :)

Re: Cool canvas Design (Easy to use)

PostPosted: Mon May 23, 2011 4:23 pm
by Hblade
lol thanks :D *Jumps for joy*

Re: Cool canvas Design (Easy to use)

PostPosted: Mon May 23, 2011 7:50 pm
by SuperSonic
Here is an example of what you can do using this code. Use LMB to move the window and click OK. :P

@LCL: you should use this in LCLOS :D

http://www.multiupload.com/SK487IYZIG Download zip here^^

Re: Cool canvas Design (Easy to use)

PostPosted: Mon May 23, 2011 10:11 pm
by Hblade
Actually :D Why don't I enhance this for LCLOS? :)

Re: Cool canvas Design (Easy to use)

PostPosted: Mon May 23, 2011 10:12 pm
by Hblade
Hey cool test dude :)