hex2color

November 7, 2019 · View on GitHub

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]