MCPcopy Create free account
hub / github.com/EasyRPG/Player / MakeColor

Function MakeColor

src/flash.h:71–73  ·  view source on GitHub ↗

* Create a Color object from RPG_RT flash values [0,31] * * @param r red color * @param g green color * @param b blue color * @param current_level strength of flash */

Source from the content-addressed store, hash-verified

69 * @param current_level strength of flash
70 */
71constexpr Color MakeColor(int r, int g, int b, double current_level) {
72 return current_level > 0.0 ? Color(r * 8, g * 8, b * 8, current_level * 8) : Color();
73}
74
75} //namespace Flash
76

Callers 5

GetFlashColorMethod · 0.85
GetFlashColorMethod · 0.85
GetFlashColorMethod · 0.85
DrawMethod · 0.85
testFlashFunction · 0.85

Calls 1

ColorClass · 0.70

Tested by

no test coverage detected