MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / drawPixel

Function drawPixel

source/util/pixelMatch.cpp:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void drawPixel(U8* output, U32 pos, U8 r, U8 g, U8 b) {
61 output[pos + 0] = r;
62 output[pos + 1] = g;
63 output[pos + 2] = b;
64 output[pos + 3] = 255;
65}
66
67double grayPixel(const U8* img, U32 i) {
68 double a = double(img[i + 3]) / 255;

Callers 1

pixelmatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected