GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

A synthetic white snowflake design with strong hexagonal symmetry on black background.

Download link

https://mstdn.thndl.com/system/media_attachments/files/113/587/195/502/641/521/original/774a13e6e69a9165.png

Notices where this attachment appears

  1. Embed this notice
    Andrew Baldwin (baldand@mstdn.thndl.com)'s status on Tuesday, 03-Dec-2024 23:19:01 JST Andrew Baldwin Andrew Baldwin

    # 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")

    In conversation about 7 months ago from mstdn.thndl.com permalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

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.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.