Description

COLOR HEX

Description:

Color Hex expands GameMaker Studio's functions and allows you to make colors starting from their Hex values. Lightweight and flexible.

Contains:

  • make_color_hex - Allows you to create a color from a Hex value
  • make_colour_hex - A simple callback to allow UK and US spelling

End User Licence Agreement (EULA).

Changes in 1.0.3

  • Improved documentation
  • Improved '#' detection

Version 1.0.3. Published March 13, 2017

Created with GameMaker: Studio v1.4.1763

Age Rating: 4+

Average Rating

This asset hasn't received enough reviews yet.

Your review

You can only review assets you've bought.


Gravatar

Taylor D 14 March 2017

really sorry to do this to you

But come on - you can't charge people for something that already is in GM, even if its a buck ;P

I don't know, you tell me, but here's how you have a hex colour in Gamemaker:
You put a dollar sign in front of it rather than a # symbol. It's that easy.

Because of how GM works, the R and B components are swapped around. So let's say I have #FF0000 for straight red. To use it in GM all you have to do is

draw_set_colour($0000FF);

Just swap the two front and two last letters of the hex code.

Package contents

Total size 2.6 KB

What is the issue?

Back to Top