@altv/types-sharedClassesRGBABranch: DevelopmentOn this pageRGBA Index ConstructorsconstructorPropertiesabgrblackbluecleargreenredwhiteMethodstoARGBtoArraytoBGRAtoInttoStringConstructors constructornew RGBA(r: number, g: number, b: number, a?: number): RGBAnew RGBA(array: [r: number, g: number, b: number, a?: number]): RGBAnew RGBA(rgba: { a?: number; b: number; g: number; r: number }): RGBARemarks The RGBA values are allowed to range from 0 to 255.Properties publicaa: numbera component of RGBApublicbb: numberb component of RGBApublicgg: numberg component of RGBApublicrr: numberr component of RGBApublicstaticreadonlyblackblack: RGBApublicstaticreadonlyblueblue: RGBApublicstaticreadonlyclearclear: RGBApublicstaticreadonlygreengreen: RGBApublicstaticreadonlyredred: RGBApublicstaticreadonlywhitewhite: RGBAMethods publictoARGBtoARGB(): RGBApublictoArraytoArray(): [r: number, g: number, b: number, a: number]publictoBGRAtoBGRA(): RGBApublictoInttoInt(): numberpublictoStringtoString(): string
Remarks
The RGBA values are allowed to range from 0 to 255.