I've recently seen a video I think it was by JP about vector IO. feeling hopeful I checked out the docs on www.circuitpython.org and I was a little surprised that there is no line function if there was a line function then I'd be able to create a function to draw a benzier curve(unsure of spelling) which is likely the best way that I can see to draw a heart or a face especially one that could move or morf into other shapes. Bitmap graphics have there limits vector graphics can do some amazing things 30 years ago I did some pretty cool stuff that was fairly easy these days libraries like OpenGL have become a lot more complex to do simple things. I know Adafruit likes to make things as easy to get started as possible so the next generation will be making more cool things than the past had easy access to I am surprised that your basic shapes included in vectorIO don't include lines I'd have to do a fair bit of experimenting with the polygon function to see if it will be able to do what I wish. my fist test of a basic Line function that I might be able to do with the polygon function will be some mathematically interesting patterns that require floating point values for full effect. I understand that all Circuit Python boards can do basic floating point math. I know drawing curves isn't super simple math wise but then again neither is drawing circles.
#Vector IO??? lines??
1 messages · Page 1 of 1 (latest)
Hello you can create lines with the draw_line function in bitmaptools. I hope this helps
Is bitmaptools part of displayio? or a different part of circuitPython?
You can use with displayio. But you need to import the library. Take a look a adafruit_displayio_layout/widgets to see a mix of the two working together. Do you have something specific in mind besides the bezier curve?
There are other graphics libraries in the community library if you want some more examples. Happy research ☺️
https://github.com/adafruit/CircuitPython_Community_Bundle/blob/main/circuitpython_community_library_list.md