CONVERTERCOLORJS (AIOUTE GAO)
A simple color converter.
Download
Link
- Link to [c3addon]https://www.construct.net/en/make-games/addons/283/convertercolorjs-aioute-gao)
Short Description
A simple color converter in JavaScript. Based on https://github.com/aioutecism/Color.js
ACEs - Expressions
CUSTOM
- toHex: Get 6 digits Hex color like #0FAAFF
- toHexA: Get 8 digits Hex color with alpha like #0FAAFF80
- toRGB: Get CSS RGB color like rgb(15, 170, 255)
- toRGBA: Get CSS RGBA color like rgba(15, 170, 255, 0.5)
GET SINGLE COLOR (RGB255)
- getRed255: Red in number range 0 ~ 255
- getGreen255: Green in number range 0 ~ 255
- getBlue255: Blue in number range 0 ~ 255
- getAlpha255: Alpha in number range 0 ~ 1
GET SINGLE COLOR (HEX)
- getRedHEX: Upper-case red in hex
- getGreenHEX: Upper-case green in hex
- getBlueHEX: Upper-case blue in hex
- getAlphaHEX: Upper-case alpha in hex