jfrech.com
jblog
table of contents

Spinning Shapes

2015-12-26, post № 94

programming, Pygame, Python, #angle, #black, #generate, #generating, #generator, #length, #rotating, #shapes, #spinning, #white

Drawing lines according to length and angle, which change over time, this program creates pretty shapes. The changing values for both length and angle are saved in the image’s name.

spinning-shapes-30_length0.995_angle+99.png
spinning-shapes-38_length0.999_angle+90.1.png
spinning-shapes-44_length1.0001_angle+90.1.png
Source code: spinning-shapes.py
Extra assets: spinning-shapes-00.png, spinning-shapes-01.png, spinning-shapes-02.png, spinning-shapes-03.png, spinning-shapes-04_length0.7_angle+100.png, spinning-shapes-05_length0.9_angle+100.png, spinning-shapes-06_length0.9_angle+91.png, spinning-shapes-07_length1_angle+91.png, spinning-shapes-08_length1_angle+89.png, spinning-shapes-09_length1.00001_angle+89.png, spinning-shapes-10_length1.001_angle+89.png, spinning-shapes-11_length0.999_angle+89.png, spinning-shapes-12_length0.999_angle+89.png, spinning-shapes-13_length0.999_angle+89.png, spinning-shapes-14_length0.999_angle+89.png, spinning-shapes-15_length0.75_angle+30.png, spinning-shapes-16_length0.75_angle+40.png, spinning-shapes-17_length0.99_angle+90.png, spinning-shapes-18_length0.99_angle+90.png, spinning-shapes-19_length0.75_angle+60.png, spinning-shapes-20_length0.75_angle+61.png, spinning-shapes-21_length0.99_angle+61.png, spinning-shapes-22_length0.99_angle+61.png, spinning-shapes-23_length0.99_angle+61.png, spinning-shapes-24_length0.99_angle+61.png, spinning-shapes-25_length0.99_angle+61.png, spinning-shapes-26_length0.99_angle+99.png, spinning-shapes-27_length0.95_angle+99.png, spinning-shapes-28_length0.999_angle+99.png, spinning-shapes-29_length0.999_angle+99.png, spinning-shapes-31_length0.8_angle+99.png, spinning-shapes-32_length0.85_angle+99.png, spinning-shapes-33_length1.001_angle+99.png, spinning-shapes-34_length1.001_angle+99.png, spinning-shapes-35_length0.99_angle+90.png, spinning-shapes-36_length0.99_angle+90.01.png, spinning-shapes-37_length0.99_angle+90.1.png, spinning-shapes-39_length0.999_angle+90.1.png, spinning-shapes-40_length0.999_angle+90.1.png, spinning-shapes-41_length1.0001_angle+90.1.png, spinning-shapes-42_length1.0001_angle+90.1.png, spinning-shapes-43_length1.0001_angle+90.1.png, spinning-shapes-45_length0.9999999_angle+90.1.png, spinning-shapes-46_length0.9_angle+70.png, spinning-shapes-47_length0.99_angle+70.png, spinning-shapes-48_length0.999_angle+70.png