Skip to content

A single function to convert HEX to RGB in LOVE2D

Notifications You must be signed in to change notification settings

swalrus1/hex2color

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

hex2color

The name is pretty self-explanatory. Use HEX color values in LÖVE.

How to

Color = require "hex2color"

pink = Color("#ea306d")

Color(hex, opacity)

returns a table representing the color

  • hex - the color value starting with #
  • opacity - opacity value [0, 1]

About

A single function to convert HEX to RGB in LOVE2D

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages