> For the complete documentation index, see [llms.txt](https://docs.streamavatars.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.streamavatars.com/lua-scripting-api/api-reference-and-tips/classes/app/convertpercenttoposition.md).

# convertPercentToPosition

```lua
return function()
    local app = getApp();
    local position = app.convertPercentToPosition(0.5, 0.5);
    --position.x will be 0 because the center.x of the screen is 0. 
    log(position.x .. ', ' .. position.y); 
end
```

{% hint style="info" %}
x=0 is the left side of the screen, x=1 is the right side.\
y=0 is the bottom of the screen, y=1 is the top.
{% endhint %}
