Skip to content
المشاريع

حول

Create recursive image rotation animations

التصميم والوسائط

كيف تُقاس هذه الأرقام

النمو المقاس للنجوم

خلال 24 ساعة
٠
خلال 7 أيام
٠
خلال 15 يومًا
٠
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

rotate

Create recursive image transformation animations

Full demo animation on my Twitter: https://twitter.com/r_vizzz/status/1311425342310092800?s=20

Older animations: https://www.youtube.com/watch?v=OXo-uzzD4Js https://www.reddit.com/r/compsci/comments/izy2kf/rotating_an_image_recursively_one_of_my_favorite/

Usage Instructions

An animation can be generated using the rotate.py or transform.py file.

rotate.py

Arguments:

python3.7 rotate.py <input_image.png> <output_file.mp4>

transform.py

Arguments:

python3.7 transform.py <input_image.png> <output_file.mp4> optional: <transform_type>

Transform Types:

0: rotation

1: vertical flip

2: horizontal flip

3: vertical+horizontal flip

For both these files:

Valid output formats include .m4a .mp4 .mov .avi

The image needs to have NxN dimensions where N is a power of 2. If these requirements are not met, the program can automatically resize the image to the closest power of 2.

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…