[fractale module] Updated fractals names

This commit is contained in:
Suwako Moriya 2019-02-27 03:06:57 +01:00
parent 82ba4da5f1
commit ffe2f910e8

View File

@ -57,12 +57,19 @@ class MainClass():
if len(args)>2 and int(args[2])<=20:
iterations=int(args[2])
await self.client.loop.run_in_executor(ThreadPoolExecutor(), fig.blanc_manger,*((1000, 1000), (4000, 4000), iterations))
elif args[1].lower()=="von_koch" :
elif args[1].lower()=="von_koch_curve_flake" :
iterations=5
if len(args)>2 and int(args[2])<=7:
iterations=int(args[2])
await self.client.loop.run_in_executor(ThreadPoolExecutor(), fig.von_koch_curve_flake,*((2500, 2500), 2000, iterations))
elif args[1].lower()=="von_koch_curve" :
iterations=5
if len(args)>2 and int(args[2])<=7:
iterations=int(args[2])
await self.client.loop.run_in_executor(ThreadPoolExecutor(), fig.von_koch_curve,*((0, 2500), (5000,2500), iterations))
else:
await self.modules['help'][1].send_help(message.channel, self)
return
im.save(tmpstr)
await message.channel.send(file=discord.File(tmpstr))
os.remove(tmpstr)