Skip to content

Small tools and resources for converting RGB->HEX and RGB Arithmetic

License

Notifications You must be signed in to change notification settings

Cisc0-gif/RGB-Tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RGB-Tools

This is a small repo I thought I'd dump the resources I used to help polish my latest project Compound Chess! Below is a Table of Contents for the scripts and resources located in this repo.

Scripts:

HEXApplyLum.py

Takes Hexadecimal input, luminance factor, and a mode option ([L]ighten or [D]arken), convert hex to RGB, performs conversions, and then converts RGB back to Hex.

RGBApplyLum.py

1st draft of HEXApplyLum.py. Takes RGB input instead of Hex.

RGBConversions.yymps

GameMakerLanguage (GML) package that contains a Decimal to Hex converter DecToHex() for converting RGB values to Hex.

  • Useful for taking Hexadecimal strings as input and converting to color with make_color_rgb()

Also contains ColApplyLum() which takes ANY color input (#xxxxxx, $xxxxxx, c_color, or make_color_rgb()) and apply luminance factor to it.

Resources:

Very helpful source on performing RGB Arithmetic and manipulating RGB values for desired effects.

RGBToHexEquation.txt

Just some quick notes I took on converting RGB values (decimal) to Hex.

About

Small tools and resources for converting RGB->HEX and RGB Arithmetic

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages