Broke Protocol Game API Reference  1.39
Code reference for server and client scripting
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
BrokeProtocol.Utility.ColorStruct Struct Reference

Public Member Functions

 ColorStruct (float r, float g, float b)
 
 ColorStruct (byte r, byte g, byte b)
 
 ColorStruct (string hexColor)
 
readonly Color ToColor (float alpha=1f)
 

Public Attributes

float r
 
float g
 
float b
 

Constructor & Destructor Documentation

◆ ColorStruct() [1/3]

BrokeProtocol.Utility.ColorStruct.ColorStruct ( float r,
float g,
float b )
inline

◆ ColorStruct() [2/3]

BrokeProtocol.Utility.ColorStruct.ColorStruct ( byte r,
byte g,
byte b )
inline

◆ ColorStruct() [3/3]

BrokeProtocol.Utility.ColorStruct.ColorStruct ( string hexColor)
inline

Member Function Documentation

◆ ToColor()

readonly Color BrokeProtocol.Utility.ColorStruct.ToColor ( float alpha = 1f)

Member Data Documentation

◆ b

float BrokeProtocol.Utility.ColorStruct.b

◆ g

float BrokeProtocol.Utility.ColorStruct.g

◆ r

float BrokeProtocol.Utility.ColorStruct.r

The documentation for this struct was generated from the following file: