I made a little python script that will create a 2048 x 2048 image (the size of GSB maps) and then randomly populates it with stars. It is written in JES (Jython Environment for Students) however, so you will need to install that and Python to run it. Here is the code if interested:
[code]import random
def main():
starlist=createStarfield(requestIntegerInRange(“How many stars would you like to create?”, 0, 5000))
saveImage_question=requestString(“Save Image?”)
if saveImage_question==“Y” or “Yes” or “y” or “yes”:
saveImage(starlist[0])
def createStarfield(numStars):
pic=makeEmptyPicture(2048, 2048, black)
outputList=[pic]
for n in range(numStars):
x=random.randrange(0, 2048)
y=random.randrange(0, 2048)
addRectFilled(pic, x, y, 1, 1, white)
#addRectFilled(pic, x+1, y, 1, 1, Color(63, 63, 63))
#addRectFilled(pic, x, y+1, 1, 1, Color(63, 63, 63))
#addRectFilled(pic, x, y-1, 1, 1, Color(63, 63, 63))
#addRectFilled(pic, x-1, y, 1, 1, Color(63, 63, 63))
outputList.append(x)
outputList.append(y)
repaint(pic)
return(outputList)
def saveImage(pic_input):
writePictureTo(pic_input, INSERT PATH HERE IN QUOTES)[/code]
The commented out lines were parts that I thought would enhance the picture, but in reality made it look weird.
And then something that I did with a starfield generated by this script and GIMP yesterday:
The starfield was actually made using an earlier version of the script, in which the image it generated was only 800 x 800. I still can’t figure out why JES puts in the little gray bits; I commented those lines out, and besides, if thy weren’t then they would be drawn in different places. Oh well.