def get_layers(self, word): textLayer = Text.TextLayer(word, borderSize=1, fontFactory=self.fontFactory) return [ Backgrounds.CroppedImage(), textLayer, Distortions.SineWarp(amplitudeRange=(2, 4)), ]
def getLayers(self): word = Words.defaultWordList.pick() self.addSolution(word) return [ random.choice([ Backgrounds.CroppedImage(), Backgrounds.TiledImage(), ]), Text.TextLayer(word, borderSize=1) ]
def get_layers(self, word): return [ random.choice([ Backgrounds.CroppedImage(), Backgrounds.TiledImage(), ]), Text.TextLayer(word, borderSize=1, fontFactory=self.get_font_factory()), Distortions.SineWarp(), ]
def getLayers(self): self.addSolution(self.solution) textLayer = Text.TextLayer(self.solution, borderSize=2, fontFactory=self.fontFactory) return [ Backgrounds.CroppedImage(), textLayer, Distortions.SineWarp(amplitudeRange=(1, 1)), ]
def getLayers(self, solution="*****@*****.**"): self.addSolution(solution) textLayer = Text.TextLayer(solution, borderSize = 2, fontFactory = self.fontFactory) return [ Backgrounds.CroppedImage(), textLayer, Distortions.SineWarp(amplitudeRange = (2, 4)), ]
def getLayers(self): word = WordList('basic-english').pick() self.addSolution(word) return [ random.choice( [Backgrounds.CroppedImage(), Backgrounds.TiledImage()]), Text.TextLayer(word, borderSize=1, fontFactory=Text.FontFactory(18, "vera/VeraBd.ttf")), Distortions.SineWarp() ]
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