Jump to content


Photo

Gm Color Extensions [closed - broken link]


  • This topic is locked This topic is locked
31 replies to this topic

#1 DavidA325

DavidA325

    GMC Member

  • New Member
  • 157 posts

Posted 02 March 2007 - 02:22 AM

GM Color Extensions

Please note:
I will not be continuing to update these or add anything to them. So feel free to ask questions, but keep in mind that I haven't touched these in over a year. Also, I no longer have the sources for these extensions.

Description:
Original Flavor
- Adds 50+ assorted colors such as c_coral or c_plum to your game
Red Flavor
- Adds 20 shades of red to your game
Green Flavor
- Adds 20 shades of green to your game
Blue Flavor
- Adds 20 shades of blue to your game
Yellow Flavor
- Adds 20 shades of yellow to your game
Functions Pack
- Adds 6 color related functions to your game (See below)

Original flavor color list:
Click Here

Choose your flavor:
GMCE Original Flavor(2.29KB) (50+ assorted colors)
GMCE Red Flavor(860B) (20 shades of red)
GMCE Green Flavor(916B) (20 shades of green)
GMCE Blue Flavor(895B) (20 shades of blue)
GMCE Yellow Flavor(939B) (20 shades of yellow)
GMCE All Colors(5.75KB) (130+ Colors, includes all colors and functions)

Download the functions pack:
GMCE Functions Pack(1.42KB)

GMCE Functions Pack includes:
color_hex(hex) hex is the hexadecimal color as a string, returns the color defined by the hex number Look at post #16!
color_random() returns a random color
color_random_blue() returns a random shade of blue
color_random_red() returns a random shade of red
color_random_green() returns a random shade of green
color_random_gray() returns a random shade of gray

Any feedback would be nice.


Edited by chance, 09 April 2015 - 08:20 PM.

  • 0
Back from the dead? Maybe.
DCM Software.net

#2 pcnerd

pcnerd

    GMC Member

  • New Member
  • 197 posts

Posted 03 March 2007 - 03:35 AM

cool. Why do you need so many grays?
  • 0

#3 kickassgames

kickassgames

    GMC Member

  • GMC Member
  • 230 posts

Posted 03 March 2007 - 08:41 AM

dude i use gray nearly all the time i make dark games (better effects) so thanks man i needed that thingy and so many new colors so good
  • 0
Come fight me fool:
Click HERE

#4 pcnerd

pcnerd

    GMC Member

  • New Member
  • 197 posts

Posted 03 March 2007 - 12:16 PM

Oh... I guess I was just not yet advanced enough to know that trick. Or... maybe I just don't create dark games enough.

Edited by pcnerd, 03 March 2007 - 12:17 PM.

  • 0

#5 Mynameisonic

Mynameisonic

    GMC Member

  • New Member
  • 170 posts

Posted 03 March 2007 - 08:10 PM

Very useful! I've always thought Game Maker needed to have more colors, especially grays. GM7 extensions ftw!
  • 0
Posted Image

#6 DavidA325

DavidA325

    GMC Member

  • New Member
  • 157 posts

Posted 04 March 2007 - 01:43 AM

Thank you all for the great replies!

Yeah I thought the grays might come in handy, its a lot easier than defining colors by hand. I'm thinking about adding more colors, in different extensions like one with several shades of green or of red or blue, etc. that way it doesn't get overwhelming with too many colors.
  • 0
Back from the dead? Maybe.
DCM Software.net

#7 Gupocca

Gupocca

    Artist

  • GMC Member
  • 644 posts
  • Version:Unknown

Posted 04 March 2007 - 01:54 AM

This is a nice extension, although it would be easy to make. Keep up the good work!

-- Legolas710
  • 0

#8 lukesterspy

lukesterspy

    Robofish

  • GMC Member
  • 762 posts
  • Version:Unknown

Posted 04 March 2007 - 02:09 PM

What are the different "Flavors" for? What is the difference? I see a difference in size, but is it worth downloading...I mean is it the same as the original one?

Ok, I get it. They are just different shades of the colors. Cool, I downloaded and tried, and in the discryption for the blue one, you spelled "you" this way: "yuo". Lol, just incase you want to fix that. But I like the new flavors. Good work.

Edited by lukesterspy, 04 March 2007 - 02:25 PM.

  • 0

R o b o fish Games


#9 pcnerd

pcnerd

    GMC Member

  • New Member
  • 197 posts

Posted 04 March 2007 - 08:15 PM

Yes! After I added the "flavors," the list of extentions that I have needs a scrollbar!
  • 0

#10 DavidA325

DavidA325

    GMC Member

  • New Member
  • 157 posts

Posted 05 March 2007 - 12:07 AM

Again, thanks for all the positive feedback!

Ok, I get it. They are just different shades of the colors. Cool, I downloaded and tried, and in the discryption for the blue one, you spelled "you" this way: "yuo". Lol, just incase you want to fix that. But I like the new flavors. Good work.

Thanks for pointing that out, I fixed it!

I don't really know what else to add, besides more flavors... any requests?
  • 0
Back from the dead? Maybe.
DCM Software.net

#11 pcnerd

pcnerd

    GMC Member

  • New Member
  • 197 posts

Posted 05 March 2007 - 12:15 AM

um... random color function, random color based on a color (like, based on c_blue, to get a random color that looks like that blue, except that it is lighter or something...)... I don't know... there's not much you can do with colors.

One thing that I really need are constants for window colors. Like the grays inside folders... (you could have a constant c_folderin for the whitish color in one, and c_folderout for the grayish color...)
  • 0

#12 DavidA325

DavidA325

    GMC Member

  • New Member
  • 157 posts

Posted 05 March 2007 - 12:58 AM

um... random color function, random color based on a color (like, based on c_blue, to get a random color that looks like that blue, except that it is lighter or something...)... I don't know... there's not much you can do with colors.

One thing that I really need are constants for window colors. Like the grays inside folders... (you could have a constant c_folderin for the whitish color in one, and c_folderout for the grayish color...)

Cool you gave me ideas <_<
But as for the windows color constants, I can't do those as they vary from computer to computer and I'm really inexperienced in the DLL making area. I do know that there is already a DLL for finding the windows colors though, try a search for it.
  • 0
Back from the dead? Maybe.
DCM Software.net

#13 gmjab

gmjab

    GMC Member

  • New Member
  • 784 posts

Posted 05 March 2007 - 01:07 AM

Could you put all the colours in one *.gex file. I don't want one for each colour type.
  • 0

#14 DavidA325

DavidA325

    GMC Member

  • New Member
  • 157 posts

Posted 05 March 2007 - 02:25 AM

Could you put all the colours in one *.gex file. I don't want one for each colour type.

Okay, I have combined all the extensions into one. It includes 130+ colors and 6 functions. Thank you for the suggestion.
  • 0
Back from the dead? Maybe.
DCM Software.net

#15 Sinaz

Sinaz

    MCP Killer

  • GMC Elder
  • 2751 posts
  • Version:GM8

Posted 05 March 2007 - 06:18 AM

Although I like the idea of extending the built in color functionality and especially adding more color constants, I have a bit of an issue with just one funciton in this package...

color_hex(hex)

the thing is that in any particular situation where you need to supply a color, you can just plug in the hex value... you don't need this function at all...

for instance:

draw_set_color($00ff00);//sets color to pure green
draw_line_color(24,64,300,200,$aeaeff,$ffffae);//sets draw line to two colors...
image_blend = $ffffff;//set image blend to white

So, I applaud you for your efforts, but I just feel that function confuses more novice programmers by drawing their attention away from a simple built in feature.

You can even supply the decimal real that corresponds to the 24bit hexcode of the color.

Just letting you know you don't need that function... simply plugging in the hexcode will provide the exact same result.
  • 0
S I N A Z

That's SINAZ... He fights for the Users.

I am retired from providing GML Mentorship, but I am available to answer questions about career and educational goals & strategies to members who are interested in pursuing game development as a life long profession. Just PM me!

Please please please: pin a shortcut or link to the GM manual to your Start Menu. Open it up whenever you are offering advice on functions you are not 100% familiar with and refer to it before committing your post.

#16 DavidA325

DavidA325

    GMC Member

  • New Member
  • 157 posts

Posted 05 March 2007 - 11:59 PM

Yeah, I knew you could do that, but what the color_hex function does is quite simple and i suppose is really unnecessary. It takes a hex color say, F0AC31 (I just made that up) and redoes it so it is 31ACF0. When copying hex colors from Photoshop or a website, I noticed that it wouldn't make the color it was supposed to in Game Maker, and that swapping the first part with the last part would correct it. I suppose you could just swap the numbers manually, it really isn't that big a deal. I will remove the function if it just causes confusion. I don't really know why I added it in the first place, now that I think of it lol

Thanks for the feedback!

Edited by DavidA325, 06 March 2007 - 12:01 AM.

  • 0
Back from the dead? Maybe.
DCM Software.net

#17 SquareWheel

SquareWheel

    Square Wheel Games

  • New Member
  • 851 posts
  • Version:Unknown

Posted 06 March 2007 - 08:00 AM

I would keep it in. I doubt it would confuse people. This looks good, is there a all-color download without the functions though?
  • 0
Cook Console | Editor Engine | Mass File Namer

All of my examples are publicly available and can be found at

#18 dhuyd

dhuyd

    GMC Member

  • GMC Member
  • 265 posts
  • Version:GM:Studio

Posted 27 March 2007 - 04:34 PM

if you're thinking of adding on to this .gex at any point here are some suggestions.

have text color functions such as..
1. every letter= a new random color
2. every word = a new random color
3. every sentance = a new random color

those are just some suggestions. you can take them or leave them it's up to you.
  • 0
keyboard_czech(vk_republic);

#19 Sinaz

Sinaz

    MCP Killer

  • GMC Elder
  • 2751 posts
  • Version:GM8

Posted 27 March 2007 - 05:34 PM

if you're thinking of adding on to this .gex at any point here are some suggestions.

have text color functions such as..
1. every letter= a new random color
2. every word = a new random color
3. every sentance = a new random color

those are just some suggestions. you can take them or leave them it's up to you.

<{POST_SNAPBACK}>


Oh my god that would be ugly.
  • 0
S I N A Z

That's SINAZ... He fights for the Users.

I am retired from providing GML Mentorship, but I am available to answer questions about career and educational goals & strategies to members who are interested in pursuing game development as a life long profession. Just PM me!

Please please please: pin a shortcut or link to the GM manual to your Start Menu. Open it up whenever you are offering advice on functions you are not 100% familiar with and refer to it before committing your post.

#20 Kaietnap

Kaietnap

    The true slaadi

  • New Member
  • 196 posts

Posted 27 March 2007 - 05:45 PM

if you're thinking of adding on to this .gex at any point here are some suggestions.

have text color functions such as..
1. every letter= a new random color
2. every word = a new random color
3. every sentance = a new random color

those are just some suggestions. you can take them or leave them it's up to you.

<{POST_SNAPBACK}>


Oh my god that would be ugly.

<{POST_SNAPBACK}>

THAT would be AWESOME!!! lol (j/k)

seriously, something useful would be a function that draws a text where parts between tags like [r] and [/r] would be colored in red for exemple... should be easy enough too
  • 0
Get KX DTE, the BEST extension for DESTRUCTIBLE TERRAIN, HERE!!!
Get KX TESLA, the BEST extension for ELECTRICITY EFFECTS, HERE!!!

#21 dhuyd

dhuyd

    GMC Member

  • GMC Member
  • 265 posts
  • Version:GM:Studio

Posted 27 March 2007 - 06:51 PM

how would that be ugly it would probaly end up looking like rainbow text or something of that nature.
  • 0
keyboard_czech(vk_republic);

#22 major_victory

major_victory

    GMC Member

  • New Member
  • 121 posts

Posted 27 March 2007 - 09:17 PM

see if you can make a function that colors text based on tags

example:
This is [color="<color>"]colored[/color] text.
where color could be in hex, gml, or rgb format.

no sure how you would do that but the text parsing shouldn't be too hard.

also if you do decide to go with coloring text you can use some of my parsing code found here: XML Parser

as soon as i find my usb drive i'll update those scripts, mostly bugfixes and i made the scripts a bit more crash free.
  • 0

#23 muslim power

muslim power

    GMC Member

  • New Member
  • 540 posts

Posted 04 April 2007 - 06:39 PM

Sorry I dint know how to use it.

So how do I?
Like I go in game maker and then?
  • 0

#24 DavidA325

DavidA325

    GMC Member

  • New Member
  • 157 posts

Posted 05 April 2007 - 02:01 AM

You go into GM7 and double click on Extension Packages then click the Install button then browse for this extension file and then it will be added to the list. Click on it in the right list and click the left facing arrow to add it to your game. Then you can use color constants like c_peach or c_forest in your code. For example, you could type:
draw_set_color(c_peach)
draw_circle(100,200,30,0)
And you'd get a peach colored circle.

Also I've taken the color tag text into consideration, I've been busy lately with working on my game and rebuilding my website, so I'll try to work it in. I might be able to use it for my game so we'll see.

-David
  • 0
Back from the dead? Maybe.
DCM Software.net

#25 smaza

smaza

    GMC Member

  • GMC Member
  • 78 posts
  • Version:GM8

Posted 11 April 2007 - 11:45 PM

Original flavour - no c_orange :P

it would be 33023 btw
  • 0
yo

#26 DavidA325

DavidA325

    GMC Member

  • New Member
  • 157 posts

Posted 12 April 2007 - 01:30 AM

Original flavour - no c_orange :skull:

it would be 33023 btw

That constant is already in GM7 :wacko:

Also, I'm having a little difficulty with the color tags, and with all my other work, I haven't been able to get it working. When I do get it working, I'll post an update.

-David

Edited by DavidA325, 12 April 2007 - 01:31 AM.

  • 0
Back from the dead? Maybe.
DCM Software.net

#27 smaza

smaza

    GMC Member

  • GMC Member
  • 78 posts
  • Version:GM8

Posted 21 April 2007 - 02:37 AM

Original flavour - no c_orange :)

it would be 33023 btw

That constant is already in GM7 :D


Meh... I'm still used to GM6, with no c_orange ;)
  • 0
yo

#28 kupiakos

kupiakos

    Ninjas beat pirates

  • New Member
  • 369 posts

Posted 08 November 2007 - 11:06 PM

The link isn't working!! ::lmao::
  • 0

#29 Mahnas_92

Mahnas_92

    GMC Member

  • New Member
  • 15 posts

Posted 16 November 2007 - 06:44 PM

Eh I only got a question: how do you do extenitions?
  • 0

#30 Shadow Ninja

Shadow Ninja

    GMC Member

  • New Member
  • 1 posts

Posted 01 December 2007 - 09:07 PM

I can't download it. ;)
  • 0

#31 jynx

jynx

    GMC Member

  • New Member
  • 458 posts

Posted 01 June 2008 - 09:16 PM

The downloads have been taken off.
Could someone please get this back out? I could use this for my mulitple instance minimap...
  • 0


Loading Signature Please Wait...
██████████████ 87%
Join 64Digits! Click here! Gaming, Blogging, and chatting!

#32 DavidA325

DavidA325

    GMC Member

  • New Member
  • 157 posts

Posted 07 June 2008 - 08:47 PM

I've corrected the links. You can now download this again, but please read the note on the original post.
  • 0
Back from the dead? Maybe.
DCM Software.net