from Processing import *
window(600, 600)

Xs = []
Ys = []

i = 0
while i < 100:
    i = i + 1
    x = random(600)
    y = random(600)
    Xs.append(x)
    Ys.append(y)

def twinkle(o, e):
    background(0)
    i = 0
    while i<100:
        x = Xs[i]
        y = Ys[i]
        alpha = random(128, 255)
        fill(255, alpha)
        noStroke()
        ellipse(x, y, 5, 5)
        i = i + 1

frameRate(5)
onLoop += twinkle
loop()

