MCPcopy Create free account
hub / github.com/WheretIB/nullc / CanvasSetColor

Function CanvasSetColor

NULLC/includes/canvas.cpp:44–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42 }
43
44 void CanvasSetColor(unsigned char red, unsigned char green, unsigned char blue, Canvas* ptr)
45 {
46 if(!ptr)
47 {
48 nullcThrowError("ERROR: Canvas object is nullptr");
49 return;
50 }
51 ptr->color[0] = red / 255.0f;
52 ptr->color[1] = green / 255.0f;
53 ptr->color[2] = blue / 255.0f;
54 ptr->color[3] = 1.0f;
55 }
56 void CanvasSetAA(bool set, Canvas* ptr)
57 {
58 if(!ptr)

Callers

nothing calls this directly

Calls 1

nullcThrowErrorFunction · 0.50

Tested by

no test coverage detected