Searched refs:unit2byte (Results 1 – 1 of 1) sorted by relevance
/external/skia/src/utils/ |
D | SkLua.cpp | 431 static U8CPU unit2byte(SkScalar x) { in unit2byte() function 442 return SkColorSetARGB(unit2byte(getfield_scalar_default(L, index, "a", 1)), in lua2color() 443 unit2byte(getfield_scalar_default(L, index, "r", 0)), in lua2color() 444 unit2byte(getfield_scalar_default(L, index, "g", 0)), in lua2color() 445 unit2byte(getfield_scalar_default(L, index, "b", 0))); in lua2color() 881 get_obj<SkPaint>(L, 1)->setAlpha(unit2byte(lua2scalar(L, 2))); in lpaint_setAlpha()
|