Name | Type | Description | Notes |
---|---|---|---|
Red | float32 | percentage of red component | |
Blue | float32 | percentage of blue component | |
Green | float32 | percentage of green component | |
Alpha | float32 | percentage of opacity |
func NewColor(red float32, blue float32, green float32, alpha float32, ) *Color
NewColor instantiates a new Color object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed
func NewColorWithDefaults() *Color
NewColorWithDefaults instantiates a new Color object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set
func (o *Color) GetRed() float32
GetRed returns the Red field if non-nil, zero value otherwise.
func (o *Color) GetRedOk() (*float32, bool)
GetRedOk returns a tuple with the Red field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Color) SetRed(v float32)
SetRed sets Red field to given value.
func (o *Color) GetBlue() float32
GetBlue returns the Blue field if non-nil, zero value otherwise.
func (o *Color) GetBlueOk() (*float32, bool)
GetBlueOk returns a tuple with the Blue field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Color) SetBlue(v float32)
SetBlue sets Blue field to given value.
func (o *Color) GetGreen() float32
GetGreen returns the Green field if non-nil, zero value otherwise.
func (o *Color) GetGreenOk() (*float32, bool)
GetGreenOk returns a tuple with the Green field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Color) SetGreen(v float32)
SetGreen sets Green field to given value.
func (o *Color) GetAlpha() float32
GetAlpha returns the Alpha field if non-nil, zero value otherwise.
func (o *Color) GetAlphaOk() (*float32, bool)
GetAlphaOk returns a tuple with the Alpha field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.
func (o *Color) SetAlpha(v float32)
SetAlpha sets Alpha field to given value.