oops forgot about the alpha channel

This commit is contained in:
minjaesong
2023-07-25 16:57:13 +09:00
parent 987ec1fd98
commit ad601ffd7e
2 changed files with 14 additions and 4 deletions

View File

@@ -55,6 +55,13 @@ class Cvec {
this.a = color.a
}
constructor(rgb: Color, alpha: Float) {
this.r = rgb.r
this.g = rgb.g
this.b = rgb.b
this.a = alpha
}
/** Constructor, sets the components of the color
*
* @param r the red component