[fractale module] Updated fractals names
This commit is contained in:
parent
82ba4da5f1
commit
ffe2f910e8
@ -57,12 +57,19 @@ class MainClass():
|
|||||||
if len(args)>2 and int(args[2])<=20:
|
if len(args)>2 and int(args[2])<=20:
|
||||||
iterations=int(args[2])
|
iterations=int(args[2])
|
||||||
await self.client.loop.run_in_executor(ThreadPoolExecutor(), fig.blanc_manger,*((1000, 1000), (4000, 4000), iterations))
|
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
|
iterations=5
|
||||||
if len(args)>2 and int(args[2])<=7:
|
if len(args)>2 and int(args[2])<=7:
|
||||||
iterations=int(args[2])
|
iterations=int(args[2])
|
||||||
await self.client.loop.run_in_executor(ThreadPoolExecutor(), fig.von_koch_curve_flake,*((2500, 2500), 2000, iterations))
|
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)
|
im.save(tmpstr)
|
||||||
await message.channel.send(file=discord.File(tmpstr))
|
await message.channel.send(file=discord.File(tmpstr))
|
||||||
os.remove(tmpstr)
|
os.remove(tmpstr)
|
||||||
|
Loading…
Reference in New Issue
Block a user