MCPcopy Create free account
hub / github.com/Tencent/libpag / MakeColorInt

Function MakeColorInt

src/platform/ohos/JsHelper.cpp:410–413  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

408}
409
410int MakeColorInt(uint32_t red, uint32_t green, uint32_t blue) {
411 int color = (255 << 24) | (red << 16) | (green << 8) | (blue << 0);
412 return color;
413}
414
415Color ToColor(int value) {
416 auto color = static_cast<uint32_t>(value);

Callers 4

FillColorFunction · 0.70
StrokeColorFunction · 0.70
SolidColorFunction · 0.70
ToJsMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected