RaTweening 1.0.0
Loading...
Searching...
No Matches
Public Types | Static Public Member Functions | List of all members
RaTweening.RaColorOptions Class Reference

This Util class hold the tools to exclude various color channels from tweening calculations More...

Public Types

enum  Channel
 Flag based enum representing Color Channels
 

Static Public Member Functions

static Channel GetOnlyIncludeChannels (Channel inclChannels)
 Returns a Channel which only contains the Channels which are not defined within the input More...
 
static Color ApplyExcludeChannels (Color original, Color final, Channel excludeChannels)
 Resets the final result to the original Color based on which Channels are to be excluded from the final calculation More...
 

Detailed Description

This Util class hold the tools to exclude various color channels from tweening calculations

Member Function Documentation

◆ ApplyExcludeChannels()

static Color RaTweening.RaColorOptions.ApplyExcludeChannels ( Color  original,
Color  final,
Channel  excludeChannels 
)
static

Resets the final result to the original Color based on which Channels are to be excluded from the final calculation

Parameters
originalThe original value
finalThe final value
excludeChannelsThe channels which should be reset to the original value within the final value
Returns
The new final value

◆ GetOnlyIncludeChannels()

static Channel RaTweening.RaColorOptions.GetOnlyIncludeChannels ( Channel  inclChannels)
static

Returns a Channel which only contains the Channels which are not defined within the input

Parameters
inclChannelsInput which Channels not to define
Returns
The value of all Channels excluding the input