Python Forum
Rotate with just one line
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Rotate with just one line
#5
(May-26-2024, 09:52 PM)deanhystad Wrote: What is your end goal?

I have a more complex SVG file, which is what I tried to animate.
But it didn’t work out in Python, and it didn’t quite work out in HTML+CSS.
As a result, so far we have been able to animate a little using styles in the SVG file itself, but this is not a technological solution.
Below is the svg file
https://drive.google.com/file/d/1z6J5VhO...flrjP/view
And work video

The hardest part is finding the center of rotation.
Now the rotation is around the number 5 located on the right.
And this
https://drive.google.com/file/d/16pbkgfm...sp=sharing
Before this, there were solutions on QT5, where they worked with SVG graphics and everything was fine.
As I already wrote, animation inside the SVG file itself is not technologically advanced and probably almost no one uses it.
It’s more interesting to take the original SVG file, parse it with some program, in C++ or Python, and animate it.
I understand this should work.
Reply


Messages In This Thread
Rotate with just one line - by MasterIphone - May-26-2024, 03:31 PM
RE: Rotate with just one line - by deanhystad - May-26-2024, 09:52 PM
RE: Rotate with just one line - by MasterIphone - May-26-2024, 11:40 PM
RE: Rotate with just one line - by deanhystad - May-27-2024, 02:01 AM
RE: Rotate with just one line - by MasterIphone - May-27-2024, 10:52 AM
RE: Rotate with just one line - by ebn852_pan - Jun-20-2024, 09:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to rotate lines in tkinter canvas helpmewithpython 1 3,595 Oct-06-2020, 06:56 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020