2020-05-10 01-39-14 PDTAbhay Raj Singh <abhayofficialone@gmail.com>Hard: count the circles, easier said than done
2020-05-10 00-38-35 PDTAbhay Raj Singh <abhayofficialone@gmail.com>[ ](https://chat.inkscape.org/direct/anonym_i_ous?msg=HiBF88Ei8uAeFyb5j) ThanksπŸ™Œ ()
2020-02-12 22-15-08 PSTAbhay Raj Singh <abhayofficialone@gmail.com>Hello! I am from *Bharat* _(a.k.a. India)_ I am currently pursuing Materials Science and Engineering from the *National Institute of Technology, Hamirpur*, Himachal Pradesh and I am in the second year of the same.
2020-05-09 23-32-16 PDTAbhay Raj Singh <abhayofficialone@gmail.com>Only two ways I know are XML and. For props not in xml like local variables debugger(GDB/LLDB) which are not easy to use. You should ask the on team_dev I'm a noob in inkscape compared to others.
2020-05-10 01-33-07 PDTAbhay Raj Singh <abhayofficialone@gmail.com>Easy: You change how things work instead of rotating around you can add drag feature that is if you drag up rouded ness increases Dow to decrease
2020-05-09 21-35-06 PDTAbhay Raj Singh <abhayofficialone@gmail.com>Ping if you have any problem/confusion
2020-05-09 20-54-08 PDTAbhay Raj Singh <abhayofficialone@gmail.com>``` Geom::Point d = s - star->center; double arg1 = atan2(d); ``` d is the location with respect to the center atan2 returns the angle, the angle which a line from *center of the star* to *snap point* would make, I guess its the angle of movement ``` double darg1 = arg1 - star->arg[0]; ``` Difference in angle between the cursor postion and one of the point on star that you can drag
2020-05-10 01-30-30 PDTAbhay Raj Singh <abhayofficialone@gmail.com>Now there are two ways to solve this
2020-05-09 20-36-26 PDTAbhay Raj Singh <abhayofficialone@gmail.com>``` SPStar *star = dynamic_cast(item); g_assert(star != nullptr); ``` This checks if item is actually a "SPStar" by trying to convert it to one, if successfull it's a star, if failed g_assert just report the error and exists th function.
2020-05-10 01-29-40 PDTAbhay Raj Singh <abhayofficialone@gmail.com>This occurs due to the design itself We currently use atan2 which returns an angle between -pi @ pi radians i.e. -180deg to 180deg so you can move a maximum of 360 degrees before the glitch
2020-05-09 21-08-01 PDTAbhay Raj Singh <abhayofficialone@gmail.com>``` if (state & GDK_MOD1_MASK) { star->randomized = darg1/(star->arg[0] - star->arg[1]); } else if (state & GDK_SHIFT_MASK) { star->rounded = darg1/(star->arg[0] - star->arg[1]); } else if (state & GDK_CONTROL_MASK) { star->r[0] = L2(d); } else { star->r[0] = L2(d); star->arg[0] = arg1; star->arg[1] += darg1; } ``` state is a bitmask that can hold multiple state at once: Think state as an object where you can do, `state.isControlPressed()` but it's slow so state is an integer which can hold many "bits(hence bit-mask)" and syntax is `state & GDK_CONTROL_MASK`
2020-05-10 00-37-55 PDTAbhay Raj Singh <abhayofficialone@gmail.com>[ ](https://chat.inkscape.org/direct/anonym_i_ous?msg=HXPvHYz7rvsz24k8H) I think this is because smaller the difference between arg 0&1 (more sides/corners) the sharper are the corners, hence smoothing should be more agressive ()
2020-05-09 21-11-50 PDTAbhay Raj Singh <abhayofficialone@gmail.com>Meaning when MOD1(Alt on my system) is pressed randomize when nodes are dragged, Shift and drag to round, ctrl to increase only the radius and nothing else(like angles of crest and trough/ hills and valleys)
2020-02-26 07-52-37 PSTAbhay Raj Singh <abhayofficialone@gmail.com>To learn about programming for flutter, search dart tutorials Remember searching online is the best tool to for a programmerπŸ˜‰
2020-02-26 07-55-07 PSTAbhay Raj Singh <abhayofficialone@gmail.com>https://www.youtube.com/playlist?list=PL4cUxeGkcC9jLYyp2Aoh6hcWuxFDX6PBJ
2020-09-02 04-02-37 PDTAbhay Raj Singh <abhayofficialone@gmail.com>I guess its automated
2020-05-10 01-38-13 PDTAbhay Raj Singh <abhayofficialone@gmail.com>The way you can do it is by checki arg1 value if it is positive then direction is up if it is negative then direction is down. Or the other way around depending on coordinate system. Then determine the length of d there would be some geom function for this. Set this length the roundness value. Maybe divide/multiply it by some property of star like radius or arg0 - arg1
2020-05-10 01-25-34 PDTAbhay Raj Singh <abhayofficialone@gmail.com>Oh now I see
2020-02-26 07-50-55 PSTAbhay Raj Singh <abhayofficialone@gmail.com>Sure! dude I would love too! I am currently having exams will be free from sunday *flutter* is one of the *easiest* thing to learn, GUI + programming + theming in the same language Works on android/ios with same code To get started Install flutter, on you system, Instructions are on the site, Even, If you have a low end PC like me ;-; VS code will work quite, good
2020-05-09 22-46-15 PDTAbhay Raj Singh <abhayofficialone@gmail.com>What editor do you use?
2020-05-09 20-48-55 PDTAbhay Raj Singh <abhayofficialone@gmail.com>``` Geom::Point const s = snap_knot_position(p, state); ``` s is the point snap point, I guess it refers to the cursor position
2020-05-09 22-49-44 PDTAbhay Raj Singh <abhayofficialone@gmail.com>And answer to your question Its in src/object/sp-star.h Line 38
2020-02-26 07-57-57 PSTAbhay Raj Singh <abhayofficialone@gmail.com>πŸ˜… sorry, on that point licensing confuses me every org seem to have their own license that makes me think why
2020-05-09 22-48-00 PDTAbhay Raj Singh <abhayofficialone@gmail.com>Cool just click the word arg in star->arg then click go to definition
2020-02-26 07-44-59 PSTAbhay Raj Singh <abhayofficialone@gmail.com>Hi! Just finished dinner, whats up!
2020-02-13 01-08-01 PSTAbhay Raj Singh <abhayofficialone@gmail.com>Sorry I wasn't trying to be rude :sweat_smile: it's just #team_devel talks in points so I have caught that habbit. I was in agreement and liked the features you suggested.
2020-05-09 20-36-06 PDTAbhay Raj Singh <abhayofficialone@gmail.com>Ok let me try:sweat_smile:
2020-05-10 00-51-23 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>https://gitlab.com/inkscape/inbox/-/issues/2722
2020-05-10 00-50-53 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>okay, lemme give u some more context:
2020-02-26 07-43-17 PSTanonym_i_ous <yashpalgoyal1304@gmail.com>hey there man!
2020-05-09 16-10-23 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>i need some help regarding understanding some code
2020-05-09 16-10-48 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>https://gitlab.com/inkscape/inkscape/-/blob/447345798f927d5cd00bdca0f3c16e0fb418f25d/src/ui/shape-editor-knotholders.cpp#L1211-1235
2020-09-01 23-34-56 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>just bringing it under ur attention too :)
2020-09-01 23-34-28 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>[ ](https://chat.inkscape.org/channel/general?msg=YPYvQau5iBmXjm9PJ) ()
2020-05-09 22-42-07 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>thanks again
2020-05-09 23-28-56 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>is there a way to look at these values realtime ~~in inkscape~~ (some of these can be looked at in xml editor in inkscape, but i was thinking for all of these)
2020-02-13 01-08-45 PSTanonym_i_ous <yashpalgoyal1304@gmail.com>yeah, i know u weren't πŸ˜„πŸ˜‡
2020-02-13 00-49-52 PSTanonym_i_ous <yashpalgoyal1304@gmail.com>so much so, that personally i wont mind it being immovable even at later stages of development..... we can just decide a default placement, and then just enable/disable it (much like we have done with tool bars rn)
2020-05-09 22-46-30 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>for? code?
2020-05-09 22-39-01 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>yeah, one doubt: > Difference in angle between the cursor postion and **one of the point on star** that you can drag
2020-05-09 16-13-54 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>ohh, and yes, i can understand psuedo code and am familiar with if-then-else, and function calling and very basics of c. (saying to convey my understanding level so that u can tell accordingly)
2020-05-09 22-40-12 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>got that `arg [x]` is the angle of one of the point on star
2020-05-09 22-45-50 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>can u point me to where arg[0] and arg[1] are defined?
2020-05-09 16-12-07 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>if u understand that, can u please tell me what is this code doing!! it will be a great help (:
2020-05-09 22-50-20 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>i cant see definition option in the browser > Its in src/object/sp-star.h > Line 38 okay, i will see (:
2020-02-12 15-05-13 PSTanonym_i_ous <yashpalgoyal1304@gmail.com>i was wondering which state are u from, and from which college, course, and stream are u doing your education!!
2020-05-09 22-36-24 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>thanks a lot for replying. it means a lot.
2020-02-26 08-01-51 PSTanonym_i_ous <yashpalgoyal1304@gmail.com>yup! thats a very high valued topic as well, cause i guess things dont take much time ending up legally entangled when licencing is involved
2020-05-09 22-41-11 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>but i cant figure out what is `arg[0] - arg[1]`
2020-05-09 23-31-31 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>(ohh and i forgot, congratulations on getting gsoc approved :))
2020-05-10 00-51-23 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>this is the issue i am trynna investigate:
2020-02-13 00-38-29 PSTanonym_i_ous <yashpalgoyal1304@gmail.com>I am interested to know a material science student doing coding. Anyways! Great to know. Kudos to u.
2020-02-12 15-04-06 PSTanonym_i_ous <yashpalgoyal1304@gmail.com>hey
2020-05-09 22-42-03 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>i willl retry understanding (:
2020-05-09 16-09-33 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>hlo
2020-05-09 23-30-20 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>any external plugin or smth
2020-02-13 00-49-40 PSTanonym_i_ous <yashpalgoyal1304@gmail.com>yeah, I also meant that movement is not necessary
2020-05-09 22-41-43 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>i mean i get it that it is difference in both these points, but cant see what is it doing in the functionality ....
2020-02-26 07-56-17 PSTanonym_i_ous <yashpalgoyal1304@gmail.com>ohh! i thought i shall have been a bit more clear! I wanted to know more about licencing. But thanks for this stuff too, i very much appreciate ur helpful behaviour 😊😊!
2020-05-09 22-47-04 PDTanonym_i_ous <yashpalgoyal1304@gmail.com>none, i am just looking at it in the browser tab
2020-02-13 00-49-20 PSTanonym_i_ous <yashpalgoyal1304@gmail.com>also, i think that u may have misunderstood > _[The movment can be shifted to later development....](https://chat.inkscape.org/channel/team_ux?msg=HRWJHZKxxs6ytkC8x) what i was wanting to say (or perhaps u were just clarifying, but i think that clause would have started with an agreement word.... dont take it personally, its just me convincing myself that i am understood πŸ˜…πŸ˜…) ()
2020-02-26 07-45-05 PSTanonym_i_ous <yashpalgoyal1304@gmail.com>[ ](https://chat.inkscape.org/channel/general?msg=go0nl7aD6UNFNWT0R) please add me to the discussion (i.e. wherever u will be having this) too, as i also want to know about all these :slight_smile: ()