Code for rotating rohestheater logo animation
This repository mainly consists of the three Red files
./perspective.red./rohestheater-logo-rotate.red./utils.red.
The file utils.red supplies some helping functions.
The file perspective.red contains some functions that can be used to calculate a 3x3 matrix that performs a perspective transformation.
The rohestheater-logo-rotate.red file makes use of this matrix to tranform a rotated virtual 2D-grid to a position and orientation in 3-dimensional space to project it back to a series of 2D-images.
Afterwards the 'rohestheater'-title is put upon that grid so that it is always fully surrounded by the borders of the (rotated) grid.
- Test if the virtual 2D-grid can be smaller when replacing pair! with point2D! for internal calculations, as pair! enforces conversion to positive integers.
- Try using point2D! as result of tilt -> omits the need for up- and downscaling!
- Center virtual 2D-grid around (0, 0)
- Use as- instead of to-, as it has cleaner syntax and might be faster
- Try to calculate the 1920x1080-sized output-image internally
- Make GIF animation for use in README
- Re-observe target points for perspective transform
- Implement the perspective-functions in Red/System for additional performance
