MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuViewPushColor

Function PiuViewPushColor

modules/piu/PC/lin/piuView.c:849–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

847}
848
849void PiuViewPushColor(PiuView* self, PiuColor color)
850{
851 cairo_t* cr = (*self)->cairo;
852 cairo_set_source_rgba(cr, ((double)color->r) / 255.0, ((double)color->g) / 255.0, ((double)color->b) / 255.0, ((double)color->a) / 255.0);
853 (*self)->transparent = (color->a == 0) ? 1 : 0;
854}
855
856void PiuViewPushColorFilter(PiuView* self, PiuColor color)
857{

Callers 1

PiuCodeDrawFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected