Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swalrus1/hex2color
A single function to convert HEX to RGB in LOVE2D
https://github.com/swalrus1/hex2color
Last synced: about 2 months ago
JSON representation
A single function to convert HEX to RGB in LOVE2D
- Host: GitHub
- URL: https://github.com/swalrus1/hex2color
- Owner: swalrus1
- Created: 2019-11-07T16:48:53.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-07T16:58:33.000Z (about 5 years ago)
- Last Synced: 2024-07-16T17:08:56.295Z (5 months ago)
- Language: Lua
- Size: 1000 Bytes
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-love2d - hex2color - A single function to use HEX color values. (Utilities)
README
# hex2color
The name is pretty self-explanatory. Use HEX color values in LÖVE.
## How to
```lua
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]