Tnank you for answers, the problems were solved:
1: By using GetPhysicalScreenSize()
2: By using the following code:
Code:
local function SetColor256(obj, r, g, b)
local function to01(value0255)
if (value0255 ~= 255) then
value0255 = value0255 + 0.4
end
return value0255 / 255
end
obj:SetColorTexture(to01(r), to01(g), to01(b))
end