def getLayers(self): #word = Words.defaultWordList.pick() self.addSolution(self.word) #return [ #Backgrounds.SolidColor(), #random.choice([ #Backgrounds.CroppedImage(), #Backgrounds.TiledImage(), # Backgrounds.Grid(size=10) #]), #Text.TextLayer(word, borderSize=1), #Backgrounds.Grid(size=15), #Distortions.SineWarp(amplitudeRange=(2, 3.0)), #Distortions.WigglyBlocks(blockSize=5), #Backgrounds.RandomDots(dotSize=2, numDots=400), # ] return [ Backgrounds.SolidColor(), Backgrounds.Grid(size=10), Distortions.SineWarp(amplitudeRange=(3, 5.0)), Text.TextLayer(self.word, borderSize=0), Backgrounds.RandomDots(dotSize=2, numDots=800), Distortions.SineWarp(amplitudeRange=(3, 6.0)), ]
def getLayers(self, solution="blah"): self.addSolution(solution) return ((Backgrounds.Grid(size=8, foreground="white"), Distortions.SineWarp(amplitudeRange=(5, 9))), (Text.TextLayer(solution, textColor='white', fontFactory=self.fontFactory), Distortions.SineWarp()))
def getLayers(self): return [ Backgrounds.SolidColor(), Backgrounds.Grid(size=10), Distortions.SineWarp(amplitudeRange=(3, 5.0)), Text.TextLayer(self.word, borderSize=0), Backgrounds.RandomDots(dotSize=2, numDots=800), Distortions.SineWarp(amplitudeRange=(3, 6.0)), ]
def getLayers(self): word = self.word ff = Text.FontFactory(26, self.font) bg = random.choice([ Backgrounds.SolidColor(), Backgrounds.CroppedImage(), Backgrounds.TiledImage(), ]) bg = (bg, Backgrounds.Grid(), Distortions.SineWarp(amplitudeRange=(6, 10), periodRange=(0.1, 0.4))) layers = [ bg, ] if not self.easyMode: layers.append(Backgrounds.RandomDots()) layers.extend([ #Distortions.WigglyBlocks(), Text.TextLayer(word, borderSize=1, fontFactory=ff), Distortions.SineWarp() #Distortions.SineWarp() ]) return layers