Home
last modified time | relevance | path

Searched refs:unit2byte (Results 1 – 1 of 1) sorted by relevance

/third_party/flutter/skia/src/utils/
DSkLua.cpp397 static U8CPU unit2byte(SkScalar x) { in unit2byte() function
408 return SkColorSetARGB(unit2byte(getfield_scalar_default(L, index, "a", 1)), in lua2color()
409 unit2byte(getfield_scalar_default(L, index, "r", 0)), in lua2color()
410 unit2byte(getfield_scalar_default(L, index, "g", 0)), in lua2color()
411 unit2byte(getfield_scalar_default(L, index, "b", 0))); in lua2color()
744 get_obj<SkPaint>(L, 1)->setAlpha(unit2byte(lua2scalar(L, 2))); in lpaint_setAlpha()