MCPcopy Create free account
hub / github.com/StereoKit/StereoKit / DocsHex

Method DocsHex

Examples/StereoKitTest/Docs/DocColor.cs:58–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56 }
57
58 bool DocsHex()
59 {
60 /// :CodeSample: Color Color32 Color32.Hex Color.Hex
61 /// ### Creating color from hex values
62 Color hex128 = Color .Hex(0xFF0000FF); // Opaque Red
63 Color32 hex32 = Color32.Hex(0x00FF00FF); // Opaque Green
64 /// :End:
65
66 if (hex128.r != 1 && hex128.g != 0 && hex128.b != 0 && hex128.a != 1)
67 return false;
68 if (hex32.r != 0 && hex32.g != 255 && hex32.b != 0 && hex32.a != 255)
69 return false;
70
71 return true;
72 }
73
74 public void Initialize()
75 {

Callers

nothing calls this directly

Calls 1

HexMethod · 0.45

Tested by

no test coverage detected