New aurora defaults FXs

This commit is contained in:
Sam Neurohack 2020-10-04 19:46:45 +02:00
parent 4b07dfc263
commit 07f5cfff73
14 changed files with 75 additions and 43 deletions

View file

@ -321,9 +321,10 @@ def Circle(LAY):
def Word(LAY):
lj.Text(LAY['word'], c = LAY['color'], layer = LAY['number'], xpos = LAY['Xcoord']+LAY['lineSize']/2, ypos = LAY['Ycoord'], resize = LAY['scale']*10, rotx = LAY['Xrotdirec'], roty = LAY['Yrotdirec'], rotz = LAY['Zrotdirec'])
lj.Text(LAY['word'], c = LAY['color'], layer = LAY['number'], xpos = 300, ypos = 300, resize = LAY['scale']*20, rotx = LAY['Xrotdirec'], roty = LAY['Yrotdirec'], rotz = LAY['Zrotdirec'])
#lj.Text(LAY['word'], c = LAY['color'], layer = LAY['number'], xpos = LAY['Xcoord'], ypos = LAY['Ycoord'], resize = LAY['scale']*10, rotx = LAY['Xrotdirec'], roty = LAY['Yrotdirec'], rotz = LAY['Zrotdirec'])
#lj.rPolyLineOneColor([(x/2,y/2),((x+1)/2,(y+1)/2)], c = LAY['color'], layer = l, xpos = 0, ypos = 0, resize = LAY['scale'], rotx = LAY['Xrotdirec'], roty = LAY['Yrotdirec'], rotz = LAY['Zrotdirec'])
#lj.rPolyLineOneColor([(x/2,y/2,0),((x+1)/2,(y+1)/2,0)], c = z2color(Field['stars'][starnumber][2], LAY['color']), layer = LAY['number'], closed = False, xpos = -200, ypos = 0, resize = LAY['scale'], rotx = LAY['Xrotdirec'], roty = LAY['Yrotdirec'], rotz = LAY['Zrotdirec'])
def Dot00(LAY):
@ -590,7 +591,7 @@ for lifes in range(0,lifenb,1):
entities.append([randint(100,width-100), randint(100,height-100), random(), randint(45,16700000), randint(-2,2)])
print("entities", entities)
#print("Butterlfy entities :", entities)
wingpos = random()

View file

@ -179,9 +179,10 @@ print()
log.infog("Aurora v0.1b")
OSCinPort = 8090
ljscene = 0
StartFXs = ["anim.Trckr", "anim.Word","anim.Starfield","anim.Starfield"]
# Useful variables init.
white = lj.rgb2int(255,255,255)
red = lj.rgb2int(255,0,0)
@ -190,6 +191,8 @@ green = lj.rgb2int(0,255,0)
cyan = lj.rgb2int(255,0,255)
yellow = lj.rgb2int(255,255,0)
StartColors = [white, blue, green, red]
screen_size = [700,700]
xy_center = [screen_size[0]/2,screen_size[1]/2]
@ -285,10 +288,10 @@ for l in range(lasernumber):
Layer.append({'number': 0, 'FX': "user.User4",
'Xcoord': 45, 'Ycoord': 45, 'Zcoord': 0,
'scandots': 64, 'scale': 45, 'color': red, "run": False,
'scandots': 64, 'scale': 45, 'color': white, "run": False,
'intensity': 255, 'closed': False,
'lineSize': 64, 'radius': 45, 'wavefreq': 3,
'word': "hello",
'word': "Sonoptik",
'step': 0, 'steps': 60, 'stepmax': 60, 'stepvals': [],
'Xtransamt': 0, 'Ytransamt': 0, 'Ztransamt': 0,
'Xtranspeed': 0, 'Ytranspeed': 0, 'Ztranspeed': 0,
@ -298,10 +301,13 @@ for l in range(lasernumber):
})
Layer[l]['number']= l
Layer[l]['FX'] = StartFXs[l]
Layer[l]['color'] = StartColors[l]
multi = {"radius": 300 }
#
# Destination : name, number, active, layer , scene, laser)
#
@ -492,7 +498,7 @@ def OSChandler(path, tags, args, source):
# /aurora/scim
if path.find('/aurora/scim') == 0:
print("OScim sending to LJ2 /scim",int(args[0])+24)
print("OScim sending to LJ /scim",int(args[0])+24)
lj.SendLJ("/scim", [int(args[0])+24])
'''
@ -514,7 +520,7 @@ def OSCim(path, tags, args, source):
newarg = path.split(" ")
newlaser = args[0]+24
print("OSim sending to LJ2 /scim",str(newlaser))
print("OSim sending to LJ /scim",str(newlaser))
lj.SendLJ("/scim", [newlaser])
print("sending knobs value for new layer")
UpdateKnobs(newlaser)