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

Method DocsColor32

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

Source from the content-addressed store, hash-verified

39 }
40
41 public void DocsColor32()
42 {
43 /// :CodeSample: Color32
44 // You can create a color using Red, Green, Blue, Alpha values,
45 // but it's often a great recipe for making a bad color.
46 Color32 color = new Color32(255, 0, 0, 255); // Red
47
48 // Hue, Saturation, Value, Alpha is a more natural way of picking
49 // colors. You can use Color's HSV function, plus the implicit
50 // conversion to make a Color32!
51 color = Color.HSV(0, 1, 1, 1); // Red
52
53 // And there's a few static colors available if you need 'em.
54 color = Color32.White;
55 /// :End:
56 }
57
58 bool DocsHex()
59 {

Callers

nothing calls this directly

Calls 1

HSVMethod · 0.80

Tested by

no test coverage detected