A synthetic white snowflake design with strong hexagonal symmetry on black background.
https://mstdn.thndl.com/system/media_attachments/files/113/587/195/502/641/521/original/774a13e6e69a9165.png
# December 3rd #python doodle
# a different snowflake each time you run it
from PIL import Image
import numpy as n
p=n.pi/6
rn=n.random.random
l=n.linspace(-0.5,0.5,1024)
x,y=n.meshgrid(l,l)
t=((n.atan2(x,y)+p)%(2*p))-p
r=n.sqrt(x*x+y*y)
x=n.abs(r*n.sin(t))
y=r*n.cos(t)-x*n.sin(p)
sf=255*((y<0.38)&(x<.01))
a=0.0
while a<0.4:
b=0.1
for j in range(10,0,-1):
sf+=137*((n.abs(y-a)<j*.002)&(x<(0.21-abs(0.2-a))*b))
b+=rn()*.1
a+=(rn()**2)*.05
Image.fromarray(sf.astype('B')).save("sf.png")
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.