The blocks saved with the new Blocks Viewer save as image feature:
This project uses perspective to give the illusion of flying past the planets in our solar system one-by-one.The relative sizes of the planets in this simulation to each other is correct.The project is based on the Coding Math tutorial '3D - Postcards in Space'.For added effect, I animated the rotations of the planets as well.This was developed with the use of a 10" ASUS TF-101 tablet, so it may not work on your device.But you can study the blocks, if nothing else.
In a nutshell, you can apply perspective to Text or circles drawn on the canvas, or sprites by using this simple formula
perspective = focal length / (focal length + z)
Multiply perspective by some <value> where <value> might be an x or y and increase the value of z to move an object toward a vanishing pointor <value> might be width, height or radius where the effect would be to shrink the object.So applying perspective in this case makes a planet simulation with shrinking text that follows the planet into the distance.
If the z value is zero, then the perspective value is one so has no effect.The larger z is, the smaller the object will be.So a loop that increases the value of z from 0 to a large number would shrink the object down to a pixel.A screen shot from a fly-by of Saturn.
The blocks saved with the new Blocks Viewer save as image feature: