forked from AkkomaGang/akkoma-fe
fix rgba function, whoops
This commit is contained in:
parent
5313833d80
commit
18ca2a035b
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ export const mixrgb = (a, b) => {
|
|||
* @returns {String} CSS rgba() color
|
||||
*/
|
||||
export const rgba2css = function (rgba) {
|
||||
return `rgba(${Math.floor(rgba.r)}, ${Math.floor(rgba.g)}, ${Math.floor(rgba.b)}, .5)`
|
||||
return `rgba(${Math.floor(rgba.r)}, ${Math.floor(rgba.g)}, ${Math.floor(rgba.b)}, ${rgba.a})`
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue