bit stumped as i am currently writing a path tracer, but ive run across an issue where absolute position takes from my actual screen size instead of the size of said image label
ik my math function colours are weird, but its because im storing them in a separate module script which is called with “math” so it doesnt have to create the math function every time i call it. its just there which is a small micro optimisation as far as i can tell
the red dots in this image are what its currently rendering, and the green dots are what it should be rendering
it most likely straight up lies to you with absolute size (not sure)?
If you want similar alghoritm to the one that roblox uses to calculate UIAspectRatio: UIStrokes Scaling made simple
Intended behavior, absolute position is the absolute position, can you clarify what you’re trying to do exactly?
Are you trying to put some UI object at a screen point? If so, you’ll need to calculate the relative position.
This would probably make it slower, actually. math is a built-in global shared table, and it does not create new closures or function objects every call.