Cool canvas Design (Easy to use)

How to find or create sprites, graphics, sounds and music.

Cool canvas Design (Easy to use)

Postby Hblade » Sun May 22, 2011 11:50 am

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);
               }
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby savvy » Sun May 22, 2011 2:00 pm

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!
--> For my help, i ask for a simple +1 if it helps! ^-^
--> I dont code, I type art which you dont understand.
--> I keep winning the 3D model challenge at college, teacher says: "you keep winning im not giving you prizes".
User avatar
savvy
 
Posts: 494
Joined: Wed Jun 03, 2009 11:55 am
Location: England
Score: 44 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby lcl » Sun May 22, 2011 3:05 pm

Nice. :)
But how can this same topic be in game art section also and contain exactly same messages and messages sending times?? :shock: :lol:
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby MrJolteon » Sun May 22, 2011 4:44 pm

It was moved
Join us on Discord!
Game Editor 2
These are the best ways to reach me these days


Your local Community Janitor, always lurking in the shadows...
User avatar
MrJolteon
 
Posts: 2326
Joined: Sat Aug 09, 2008 3:25 pm
Location: Stranded under endless sky
Score: 105 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby Hblade » Sun May 22, 2011 5:07 pm

lol thanks

because it was moved :P like jolt said :D It was posted in game dev but I moved it to here
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby lcl » Sun May 22, 2011 6:33 pm

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
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby SuperSonic » Sun May 22, 2011 8:03 pm

Wow this is awsome man :shock:
You may now celebrate your 100th point anniversary (I givs you 1) :wink:
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby Hblade » Sun May 22, 2011 8:19 pm

lol yay 100 :) thanks :D

Yeah, its a shadow copy Oo a link that directs you here xD Idk its strange Oo
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby SuperSonic » Sun May 22, 2011 8:30 pm

It's not in advanced topics anymore :D
I just checked :P
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby Hblade » Sun May 22, 2011 8:31 pm

yup lolz :D :)
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby lcl » Sun May 22, 2011 9:29 pm

Congratulations for your 100th point, H! :)
User avatar
lcl
 
Posts: 2339
Joined: Thu Mar 25, 2010 5:55 pm
Location: Finland
Score: 276 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby Hblade » Mon May 23, 2011 4:23 pm

lol thanks :D *Jumps for joy*
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby SuperSonic » Mon May 23, 2011 7:50 pm

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^^
A tree never hits an automobile except in self-defence.

Want to use your joystick or controller with Game Editor? Check out my controller engine =D
User avatar
SuperSonic
 
Posts: 1443
Joined: Fri Sep 24, 2010 9:24 pm
Location: Anywhere
Score: 72 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby Hblade » Mon May 23, 2011 10:11 pm

Actually :D Why don't I enhance this for LCLOS? :)
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: Cool canvas Design (Easy to use)

Postby Hblade » Mon May 23, 2011 10:12 pm

Hey cool test dude :)
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Next

Return to Game Resources

Who is online

Users browsing this forum: No registered users and 1 guest

cron