Some commands I’ve not seen before so had to investigate
The ‘sponge’ command is random based, which lead me to wonder about other approaches and the possibility of controlling it (range 0 to 1):
Cool stuff; what I actually meant was creating sky starts. Posted a tribute to Stephen Hawkings (link below) for what meant. Even so, like the idea of using any object. As a side note, I used voronoi stipper to place the points which I turned into starts. Added some additional background stars as well.
Heard to beat GIMP’s own Sparkle filter. Still, your result looks promising. I took your latest code, then followed it by G’MIC’s morphological filter to squeeze the stars smaller, then ran GIMP’s sparkle preset (random orietation sparkles this time).
# normalize the colors between 128 and 255 to obtain lighter colors
-n[-1] 128,255
# get a 'gray' image with a richer gray
-to_pseudogray[-1] 5,1,8
# add blur for richer rendering with the 'isophotes' command
-blur[-1] 2
# to obtain contours according to the luminosite with a transparent background
-isophotes[-1] 6
# create a new image with 4 channels to the dimensions of the current image
{w},{h},1,4
# n loops or n = (width + height) /1.5
-repeat {{{w}+{h}}/1.5} # delete points
# draw a transparent line from the middle of image with a random length
-line[-2] 50%,50%,{u(100)}%,{u(100)}%,1,0,0,0,0
-done
# loops
-repeat {{{w}+{h}}/2} # points on outlines
# draw a white line with a random length
-line[-1] {u(100)}%,{u(100)}%,{u(100)}%,{u(100)}%,1,255,255,255,255
-done
# loops
-repeat {{{w}+{h}}/5} # points outside the outlines
# put white dots randomly on the image
-point {u(100)}%,{u(100)}%,0,1,255,255,255,255
-done
# 'and' between the 2 images [-1,-2] to obtain a single resulting image
-and[-1,-2]
# 'circular dilation' by 3 pixels
-dilate_circ[-1] 3