[Webmaster] Rocket.Chat, 2 Users, 62 Messages, 0 Files, 635097 Minutes, in Direct Message Between: anonym_i_ous & rathod-sahaab
2020-05-10 01-39-14 PDT Abhay Raj Singh Hard: count the circles, easier said than done 2020-05-10 00-38-35 PDT Abhay Raj Singh [ ](https://chat.inkscape.org/direct/anonym_i_ous?msg=HiBF88Ei8uAeFyb5j) Thanks🙌 () 2020-02-12 22-15-08 PST Abhay Raj Singh 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 PDT Abhay Raj Singh 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 PDT Abhay Raj Singh 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 PDT Abhay Raj Singh Ping if you have any problem/confusion 2020-05-09 20-54-08 PDT Abhay Raj Singh ``` 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 PDT Abhay Raj Singh Now there are two ways to solve this 2020-05-09 20-36-26 PDT Abhay Raj Singh ``` 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 PDT Abhay Raj Singh 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 PDT Abhay Raj Singh ``` 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 PDT Abhay Raj Singh [ ](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 PDT Abhay Raj Singh 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 PST Abhay Raj Singh 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 PST Abhay Raj Singh https://www.youtube.com/playlist?list=PL4cUxeGkcC9jLYyp2Aoh6hcWuxFDX6PBJ 2020-09-02 04-02-37 PDT Abhay Raj Singh I guess its automated 2020-05-10 01-38-13 PDT Abhay Raj Singh 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 PDT Abhay Raj Singh Oh now I see 2020-02-26 07-50-55 PST Abhay Raj Singh 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 PDT Abhay Raj Singh What editor do you use? 2020-05-09 20-48-55 PDT Abhay Raj Singh ``` 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 PDT Abhay Raj Singh And answer to your question
Its in src/object/sp-star.h Line 38 2020-02-26 07-57-57 PST Abhay Raj Singh 😅 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 PDT Abhay Raj Singh Cool just click the word arg in star->arg then click go to definition 2020-02-26 07-44-59 PST Abhay Raj Singh Hi! Just finished dinner, whats up! 2020-02-13 01-08-01 PST Abhay Raj Singh 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 PDT Abhay Raj Singh Ok let me try:sweat_smile: 2020-05-10 00-51-23 PDT anonym_i_ous https://gitlab.com/inkscape/inbox/-/issues/2722 2020-05-10 00-50-53 PDT anonym_i_ous okay, lemme give u some more context: 2020-02-26 07-43-17 PST anonym_i_ous hey there man! 2020-05-09 16-10-23 PDT anonym_i_ous i need some help regarding understanding some code 2020-05-09 16-10-48 PDT anonym_i_ous https://gitlab.com/inkscape/inkscape/-/blob/447345798f927d5cd00bdca0f3c16e0f... 2020-09-01 23-34-56 PDT anonym_i_ous just bringing it under ur attention too :) 2020-09-01 23-34-28 PDT anonym_i_ous [ ](https://chat.inkscape.org/channel/general?msg=YPYvQau5iBmXjm9PJ) () 2020-05-09 22-42-07 PDT anonym_i_ous thanks again 2020-05-09 23-28-56 PDT anonym_i_ous 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 PST anonym_i_ous yeah, i know u weren't 😄😇 2020-02-13 00-49-52 PST anonym_i_ous 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 PDT anonym_i_ous for? code? 2020-05-09 22-39-01 PDT anonym_i_ous 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 PDT anonym_i_ous 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 PDT anonym_i_ous got that `arg [x]` is the angle of one of the point on star 2020-05-09 22-45-50 PDT anonym_i_ous can u point me to where arg[0] and arg[1] are defined? 2020-05-09 16-12-07 PDT anonym_i_ous 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 PDT anonym_i_ous 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 PST anonym_i_ous 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 PDT anonym_i_ous thanks a lot for replying. it means a lot. 2020-02-26 08-01-51 PST anonym_i_ous 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 PDT anonym_i_ous but i cant figure out what is `arg[0] - arg[1]` 2020-05-09 23-31-31 PDT anonym_i_ous (ohh and i forgot, congratulations on getting gsoc approved :)) 2020-05-10 00-51-23 PDT anonym_i_ous this is the issue i am trynna investigate: 2020-02-13 00-38-29 PST anonym_i_ous I am interested to know a material science student doing coding. Anyways! Great to know. Kudos to u. 2020-02-12 15-04-06 PST anonym_i_ous hey 2020-05-09 22-42-03 PDT anonym_i_ous i willl retry understanding (: 2020-05-09 16-09-33 PDT anonym_i_ous hlo 2020-05-09 23-30-20 PDT anonym_i_ous any external plugin or smth 2020-02-13 00-49-40 PST anonym_i_ous yeah, I also meant that movement is not necessary 2020-05-09 22-41-43 PDT anonym_i_ous 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 PST anonym_i_ous 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 PDT anonym_i_ous none, i am just looking at it in the browser tab 2020-02-13 00-49-20 PST anonym_i_ous 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 PST anonym_i_ous [ ](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: ()
participants (1)
-
no-reply@chat.inkscape.org