Click/tap the white box to see the next part. There's some code inside that does all the math for you.
Thanks to @ovalgibbon for the Art Quest logo and the background.