This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** Valid values are from 0 to 255 (inclusive) */ | |
export interface Colour { | |
red: number; | |
blue: number; | |
green: number; | |
} | |
/** Calculates an intermediary colour between 2 or 3 colours. | |
* @returns {Colour} Object with red, green, and blue number fields. | |
* @example -> {red: 123, blue: 255, green: 0} |
NewerOlder