Newbie scale and OnScreenImage

Hello everyone

This code doesn’t scale at all
self.imageObject = OnscreenImage(image = ‘textures/background.png’, pos = (0, 0, 0), scale=(1024/800,1,1024/600), parent = render2d)

This code somehow does
self.imageObject = OnscreenImage(image = ‘textures/background.png’, pos = (0, 0, 0), scale=(1.28,1,1.7), parent = render2d)

Somehow I can’t use calculations using scale? I am new to python so I might do something very simple very wrong.

Thank you…

you have to use float-values for your calculation.
1024/800 gives you 1.
try 1024[color=red].0/800[color=red].0 or 1024[color=red].0/800