Is there any way to know the X, Y position of an child of SVG? Because I will need to move the child later on, but not far away form the original position, so if I know the original position of that child, I can set it to other position.
I have read some posts here, and I know that have a function called "getParams()", I have try that but I don't know what value it return, may be this is the answer of my question? But please explain to me more how this function works or what the value of this function returned.
Thanks for the reply!! That is a good way to know the position, but if I have to work with a lot of child, I think that may to complex and may have mistakes??
And I have know more about the getParams, and I realized that it can get the x,y position, width and height of the child. I guess I can use that information to work with.
Also, actually I want to know is there any way to split the child or the shape(svg). The final result that I have to do is.. 1. I have a svg that is a chinese word, make by a lot of 8x8 square in AI, thats mean one word have a lot of paths. 2. I have to make some part of the word split out of the original position. Just like the right picture below, the four small squares are part of the last right 8x8 square of the word.
So I just want to get this result and may be the rotate angle will random every time, or randomly select different part of the word to split. Is there any easy way to do?
Sorry that is a lot of question and I am really don't familiar with SVG files(but this is the most easy way that I can think of, if I have to work with chinese characters.)...Thank you for the help.!!
I have look at the Geomerative library, and I can see it have a function can split svg child, but it just can split it by radius, which mean I just can split the image into triangle:( but I need to be spilt as a square....
If I don't use SVG, what other ways I can use to achieve my through? I started with SVG because to make a chinese character, it is hard to draw it in Processing....
Thanks for the time of reading my question:)
Leave a comment on PhiLho's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic