def setup():
    size(500,500)
    smooth()
    background(0)
    strokeWeight(1)

cx = 250
cy = 250
counter=0

def draw():
    global counter
    stroke(200,5)
    for si in range (6):
        for ci in range (6):
            nx = ci*80+50
            ny = si*80+50
            
            x1 = nx - sin(counter)*(50)
            y1 = ny - cos(counter)*(50)
            x2 = ny + sin(counter)*(50)
            y2 = nx + cos(counter)*(50)
            line(x1,y1,x2,y2)
            point(nx,ny)
            
            counter += 0.001
            if (counter > 2*PI):
                counter = 0

def setup():
    size(500,500)
    smooth()
    background(0)
    strokeWeight(1)

cx = 250
cy = 250
counter=0

def draw():
    global counter
    stroke(200,5)
    for si in range (6):
        for ci in range (6):
            nx = ci*80+50
            ny = si*80+50
            
            x1 = nx - sin(counter)*(50)
            y1 = ny - cos(counter)*(50)
            x2 = ny + sin(counter)*(50)
            y2 = nx + cos(counter)*(50)
            line(x1,y1,x2,y2)
            point(nx,ny)
            
            counter += 0.001
            if (counter > 2*PI):
                counter = 0
