Hi
Using the ui editor I created a custom view - I then create shapes etc that are drawn into that view which I name in the editor as the events custom class.
I created elements that sit on top of the bg custom view in ui editor and set the alphas to allow the bg to bleed through..
Not seeing any bg though...
how do I animate these lines persistently in the bg constantly changing position etc like a kind of interference effect?
What is the process for layering ui elements on top of each other using alphas and the ui editor?
Should I be using scene view instead for bg anim?
Should the other elements that sit atop bg be subviews of the bg element?
class bgLines(ui.View):
def __init__(self):
self.w = ui.get_screen_size()[0]
self.h = ui.get_screen_size()[1]
self.lines=[]
for v in range(0,random.randint(10,int(self.h/4))):
path = ui.Path.rect(0,0,self.w,1)
path.line_width = random.uniform(1,10)
self.lines.append(ShapeNode(path,(0.01, random.uniform(0.1,0.4), .01),(0.01, random.uniform(0.1,0.2), .01),shadow=((.82,1,85), 1, 1, 2) ))
self.lines[v].position=(self.w/2,random.uniform(0,int(self.h)))
self.lines[v].alpha=(random.uniform(0,0.25))