@[email protected] to [email protected] • 8 months agoHardest Problem in Computer Science: Centering Thingstonsky.memessage-square20fedilinkarrow-up1138cross-posted to: [email protected][email protected]
arrow-up1138external-linkHardest Problem in Computer Science: Centering Thingstonsky.me@[email protected] to [email protected] • 8 months agomessage-square20fedilinkcross-posted to: [email protected][email protected]
minus-square@[email protected]linkfedilink15•8 months agoAs a computer science problem it ends at position = window center / 2 - object width / 2
minus-square@[email protected]linkfedilink1•8 months agoIs not always this simple though. If the window has yet to be spawned in some languages the width will be unavailable, until after. Sometimes the window can be seen before it moves to the center which is a bit jarring.
As a computer science problem it ends at position = window center / 2 - object width / 2
Is not always this simple though. If the window has yet to be spawned in some languages the width will be unavailable, until after. Sometimes the window can be seen before it moves to the center which is a bit jarring.