Advertisement · 728 × 90

Posts by

Video

#genuary28 #genuary2025 #genuary

"Infinite scroll."

1 year ago 4 0 0 0
Synthetic pattern a bit like a handwoven rug. Pastel green and blue colours on yellow base.

Synthetic pattern a bit like a handwoven rug. Pastel green and blue colours on yellow base.

#genuary15 #genuary2025 #genuary

Design a rug.

1 year ago 9 0 1 0
Synthetic image resembling a patchwork quilt.

Each patch is divided into 4 patches of different colours. 

Some of those patches are divided again, and again, for many levels.

Synthetic image resembling a patchwork quilt. Each patch is divided into 4 patches of different colours. Some of those patches are divided again, and again, for many levels.

#genuary12 #genuary2025 #genuary

Subdivision.

Link: mstdn.thndl.com/@baldand/113...

1 year ago 9 1 0 0
Colourful circular tiling pattern with symmetry of 10. In the outer part of the image, tiles contain black doorways.

Colourful circular tiling pattern with symmetry of 10. In the outer part of the image, tiles contain black doorways.

#genuary10 #genuary2025 #genuary #python

"You can only use TAU in your code, no other number allowed."

Python code: mstdn.thndl.com/@baldand/113...

1 year ago 5 0 0 0
Synthetic close-up image of a multi-coloured textile covered seat, with a shadow down the centre.

Synthetic close-up image of a multi-coloured textile covered seat, with a shadow down the centre.

Synthetic close-up image of a multi-coloured textile covered seat, with a shadow down the centre.

Synthetic close-up image of a multi-coloured textile covered seat, with a shadow down the centre.

Synthetic close-up image of a multi-coloured textile covered seat, with a shadow down the centre.

Synthetic close-up image of a multi-coloured textile covered seat, with a shadow down the centre.

Synthetic close-up image of a multi-coloured textile covered seat, with a shadow down the centre.

Synthetic close-up image of a multi-coloured textile covered seat, with a shadow down the centre.

#genuary9 #genuary2025 #genuary #python

The textile design patterns of public transport seating.

mstdn.thndl.com/@baldand/113...

1 year ago 4 1 0 0
Synthetic image with green ellipses on a blue background. The ellipses at the bottom of the image are larger, as though closer.
Vaguely reminds of a Monet lilies painting.

Synthetic image with green ellipses on a blue background. The ellipses at the bottom of the image are larger, as though closer. Vaguely reminds of a Monet lilies painting.

#genuary6 #genuary2025 #genuary #python

Make a Landscape using only primitive shapes.

mstdn.thndl.com/@baldand/113...

1 year ago 6 0 0 0
Video

#genuary5 #genuary2025 #genuary #python

Isometric

mstdn.thndl.com/@baldand/113...

1 year ago 10 0 2 0
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 1 image #genuary4 #genuary2025 #genuary #python # "Black on black." # To view: "ffplay -framerate 60 -loop 0 b%04d.png" import numpy as n,PIL.Image as I W=720 y,x,_=n.mgrid[:W,:W,:3]/W-.5 r...

#genuary4 #genuary2025 #genuary #python

mstdn.thndl.com/@baldand/113...

1 year ago 6 0 0 0
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 4 images #genuary1 #genuary2025 #python # "Vertical or horizontal lines only." import numpy as n,PIL.Image as I r=n.random.random f=n.floor W=1<<10 T,S,H,V,R,G,B,A=r(8) y,x,_=n.mgrid[:W,:W,...

mstdn.thndl.com/@baldand/113...

Vertical or horizontal lines only.

#genuary1 #genuary2025 #python

1 year ago 2 0 0 0
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 4 images #python doodle December 22nd - lights and shadows import numpy as n,PIL.Image as I W=1<<10 y,x,_=n.mgrid[:W,:W,:3]/W-.5 w=lambda x,y:(((x%.4-.2)**2+(y%.4-.2)**2)**.5)-.01 i=x*0 for...

Lights and shadows

A small #python & #numpy program which generates an image of randomly placed & coloured lights casting shadows from 4 poles

mstdn.thndl.com/@baldand/113...

1 year ago 2 0 0 0
Advertisement
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 4 images # python doodle December 21st import numpy as n,PIL.Image as I W=1<<10 y,x,_=n.mgrid[:W,:W,:3]/W-.5 p=x*0 for r in n.random.random((20,7)): a=r[2]*2*n.pi c=n.cos(a) s=n.sin(a) ...

mstdn.thndl.com/@baldand/113...

1 year ago 1 0 0 0
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 4 images #python doodle December 20th import numpy as n,PIL.Image as I W=1<<10 y,x,_=n.mgrid[:W,:W,:3]/W p=y*0 for r in 4*n.random.random((1000,6))-2: p+=0.02*((x*x*r[0]+x*r[1]+r[2])>y)*r[...

mstdn.thndl.com/@baldand/113...

1 year ago 1 0 0 0
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 4 images #python doodle December 18th - spiral threads import numpy as n,PIL.Image as I p,h,S,C,P=2**-8,.5,n.sin,n.cos,n.pi y,x,_=n.mgrid[1:-1:-p,-1:1:p,0:3] R,G,B,r,b,g,i,j,k,t,T=n.random....

Random coloured spiral thread image generator, with #python, #numpy and #pillow

mstdn.thndl.com/@baldand/113...

1 year ago 1 0 0 0
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) 804 Posts, 614 Following, 282 Followers · I have been making small computers do new things for many years. Expect technical posts, programming, graphics/shaders/GPU, fediverse (running my own server)...

There are a few more from earlier this month on my mastodon feed:

mstdn.thndl.com/@baldand

1 year ago 1 0 0 0
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 1 image #python doodle Dec 17th import numpy as n,PIL.Image as I p,A,X,N,h,R,S,F=2**-10,n.abs,n.maximum,n.minimum,.5,.866,n.sin,n.floor y,x=n.mgrid[h:-h:-p,-h:h:p] B=lambda k,c,s:X(A(k[0]*c...

Raymarching a repeating signed distance field of snowflakes with #python #numpy & #pillow

(499 characters)

mstdn.thndl.com/@baldand/113...

1 year ago 1 0 1 0
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 4 images #python doodle - December 16th import numpy as n,PIL.Image as I p,A,h,R=2**-10,n.astype,.5,n.random.random y,x,_=n.mgrid[h:-h:-p,-h:h:p,:3] r=A(((x*x+y*y)**h)*R()*1e3,'B') t=A(((h*...

Circular gray code random image generator with #python #numpy and #pillow

mstdn.thndl.com/@baldand/113...

1 year ago 2 0 0 0
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 4 images #python doodle - December 15th import numpy as n,PIL.Image as I p,h,R=2**-10,.5,n.random.random y,x,_=n.mgrid[1:0:-p,0:1:p,0:3] def s(x):return x*x*x*(x*(6*x-15)+10) d=x*0 f=1 whil...

Coastline image generator with #python #numpy and #pillow

mstdn.thndl.com/@baldand/113...

1 year ago 1 0 0 0
Preview
Python gets down to (the) Metal Turn Python on Mac up to 10 trillion with Metal

Run very fast calculations from #python on your #macOS #GPU using ‘metalcompute’ package

thndl.com/python-metal...

1 year ago 1 0 0 0
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 4 images # December 5th #python doodle:trees from PIL.Image import fromarray as fa import numpy as n f,b,q,h,z,s,c,g,R=2,.3,.25,.5,2**-10,n.sin,n.cos,range,n.random.random y,x=n.mgrid[-h:h:...

Random tree image generator with #python #numpy and #pillow

mstdn.thndl.com/@baldand/113...

1 year ago 1 0 0 0
Advertisement
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 4 images # 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.mes...

Random snowflake image generator with #python #numpy and #pillow

mstdn.thndl.com/@baldand/113...

1 year ago 2 0 0 0
Preview
Andrew Baldwin (@baldand@mstdn.thndl.com) Attached: 1 image #python Dec11 import numpy as n,PIL.Image as I p,A,h=2**-11,n.abs,.5 y,x,_=n.mgrid[h:-h:-p,-h:h:p,0:3] def W(x,y,z): s,d,w,e,l=1.5,x*0+9,2,.4,x*0 for i in range(1,9): g=((x*x+y*...

mstdn.thndl.com/@baldand/113...

Attempting to #raymarch a #fractal distance field with #python and #numpy in 500 characters

1 year ago 1 0 0 0