Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stanzilla/libcustomglow
A library to add custom glow effects to frames
https://github.com/stanzilla/libcustomglow
lua world-of-warcraft world-of-warcraft-addon wow-addon
Last synced: 23 days ago
JSON representation
A library to add custom glow effects to frames
- Host: GitHub
- URL: https://github.com/stanzilla/libcustomglow
- Owner: Stanzilla
- License: mit
- Created: 2018-11-02T21:01:17.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-29T22:12:01.000Z (3 months ago)
- Last Synced: 2024-12-10T16:40:32.618Z (about 1 month ago)
- Topics: lua, world-of-warcraft, world-of-warcraft-addon, wow-addon
- Language: Lua
- Homepage: https://www.curseforge.com/wow/addons/libcustomglow
- Size: 168 KB
- Stars: 9
- Watchers: 3
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LibCustomGlow
If you want to use LCG in your addon, please make sure to add it and `Masque` to your `OptionalDependencies` array in your TOC file.
Adds functions:
## Pixel Glow
- `PixelGlow_Start(frame[, color[, N[, frequency[, length[, th[, xOffset[, yOffset[, border[ ,key]]]]]]]])`
Starts glow over target frame with set parameters:
- `frame` - target frame to set glowing;
- `color` - {r,g,b,a}, color of lines and opacity, from 0 to 1. Default value is {0.95, 0.95, 0.32, 1};
- `N` - number of lines. Default value is 8;
- `frequency` - frequency, set to negative to inverse direction of rotation. Default value is 0.25;
- `length` - length of lines. Default value depends on region size and number of lines;
- `th` - thickness of lines. Default value is 2;
- `xOffset`,`yOffset` - offset of glow relative to region border;
- `border` - set to true to create border under lines;
- `key` - key of glow, allows for multiple glows on one frame;---
- `PixelGlow_Stop(frame[, key])`
Stops glow with set key over target frame
## AutoCast Glow
- `AutoCastGlow_Start(frame[, color[, N[, frequency[, scale[, xOffset[, yOffset[, key]]]]]]])`
Starts glow over target frame with set parameters:
- `frame` - target frame to set glowing;
- `color` - {r,g,b,a}, color of particles and opacity, from 0 to 1. Default value is {0.95, 0.95, 0.32, 1};
- `N` - number of particle groups. Each group contains 4 particles. Default value is 4;
- `frequency` - frequency, set to negative to inverse direction of rotation. Default value is 0.125;
- `scale` - scale of particles;
- `xOffset`,`yOffset` - offset of glow relative to region border;
- `key` - key of glow, allows for multiple glows on one frame;---
- `AutoCastGlow_Stop(frame[, key])`
Stops glow with set key over target frame
## ButtonGlow
Blizzard glow is based heavily on
- `ButtonGlow_Start(frame[, color[, frequency]]])`
Starts glow over target frame with set parameters:
- `frame` - target frame to set glowing;
- `color` - {r,g,b,a}, color of particles and opacity, from 0 to 1. Default value is {0.95, 0.95, 0.32, 1};
- `frequency` - frequency. Default value is 0.125;---
- `ButtonGlow_Stop(frame)`
Stops glow over target frame