Skip to content

This is a MySql function that will convert a color hex code to rgb.

Notifications You must be signed in to change notification settings

mcculloughjchris/hex-to-rgb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Hex to RGB!

This MySQL function will convert color hex codes to RGB!

Instructions:

  1. Upload hexToRgb.sql onto your web server
  2. Login to MySQL and select your database
  3. Import the .sql file by using "source /path-to-file/hexToRgb.sql" (replace /path-to-file/ with wherever you uploaded the file to)

Usage

I'm not even sure how implementable this function is, but for example:

  • "SELECT hexToRgb('#000000')" would give you "0,0,0"
  • "SELECT hexToRgb('ffffff')" would give you "255,255,255"

About

This is a MySql function that will convert a color hex code to rgb.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages