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