MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / FlashScreen

Function FlashScreen

TombEngine/Scripting/Internal/TEN/View/ViewHandler.cpp:188–192  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186 }
187
188 static void FlashScreen(TypeOrNil<ScriptColor> col, TypeOrNil<float> speed)
189 {
190 auto color = ValueOr<ScriptColor>(col, ScriptColor(255, 255, 255));
191 Weather.Flash(color.GetR(), color.GetG(), color.GetB(), (ValueOr<float>(speed, 1.0)) / (float)FPS);
192 }
193
194 static float GetAspectRatio()
195 {

Callers

nothing calls this directly

Calls 5

FlashMethod · 0.80
ScriptColorClass · 0.50
GetRMethod · 0.45
GetGMethod · 0.45
GetBMethod · 0.45

Tested by

no test coverage detected