top | item 45796933

(no title)

HansardExpert | 3 months ago

A web app that uses Python to create Celtic knots and it's really fun!

discuss

order

xnx|3 months ago

Looks neat. Might be worth constraining the inputs. I got an error at 200x200:

  Uncaught PythonError: Traceback (most recent call last):
  File "<exec>", line 22, in resetKnot
  File "<exec>", line 473, in generateKnot
  File "/lib/python3.12/site-packages/PIL/Image.py", line 2941, in new
    return im._new(core.fill(mode, size, color))
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MemoryError

2earth|3 months ago

200x200? You're crazy!

Also: yes, good idea