MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / TestHexConversion

Method TestHexConversion

Source/Engine/Tests/TestColor.cs:42–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40 }
41
42 [Test]
43 public void TestHexConversion()
44 {
45 string hex = Color.Blue.AlphaMultiplied(0.5f).ToHexString();
46 Color col1 = Color.FromHex(hex);
47 Color col2 = Color.FromRGBA(0x0000FF7F);
48 Assert.AreEqual((Color32)col1, (Color32)col2);
49 }
50 }
51}
52#endif

Callers

nothing calls this directly

Calls 5

AlphaMultipliedMethod · 0.80
FromRGBAMethod · 0.80
ToHexStringMethod · 0.45
FromHexMethod · 0.45
AreEqualMethod · 0.45

Tested by

no test coverage detected