View Single Post
07-11-18, 01:35 PM   #3
runamonk
A Theradrim Guardian
 
runamonk's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2007
Posts: 61
Originally Posted by Basil2 View Post
I am trying to output some pixels and have two problems.


1. Frame:SetSize(x, y) in real pixels is not exactly x and y.

I can compensate it by using Frame:SetScale(768/real_resolution). But how can I get <real_resolution> within addon?


2. I cannot set exact pixel color.

I have
Code:
function SetColor256(obj, r, g, b)
    obj:SetColorTexture(r/255, g/255, b/255)
end
However, when I call it like SetColor256(1, 2, 3), real pixel might have (0, 1, 3). Or (1,2,3) as planned. Why? How to compensate it?
Check out oUF.
and
Check out oUF p3lim
  Reply With Quote