Trying to make a Flowchart Connector
BlitzMax Forums/BlitzMax Programming/Trying to make a Flowchart Connector
| ||
Hi. I am trying to create a good mathematical folowchart line connector. I want it to be ultimate, but i yet have managed to figure how to do it properly. ive made a sketch of what exactly i want it to be. if anyone up to the challenge or may have a code.. Ill be glad if he shared it. Ill keep trying my self doing so .. the simple connector are the ones with straight boxes.. the diagonal boxes are just a wishful thinking but not totally necessary. Thanks |
| ||
You might want to use CatMull-Rom-Splines. https://en.wikipedia.org/wiki/Centripetal_Catmull%E2%80%93Rom_spline Or bezier-curves. Threads here on the forums: Catmull-Rom Splines Requesting Catmull Rom tutorial My game (TVTower) contains some code for this (catmull-rom-splines): https://github.com/GWRon/TVTower/blob/master/source/basefunctions.bmx maybe that helps. bye Ron |
| ||
Tnx Mate :) |
| ||
See the demo in https://github.com/vurtun/nuklear for a C version. You have to uncomment the relevant example while the actual implementation is in node_editor.c. Edit: Thought I was posting in the General Discussion rather than Blitzmax specific. |
| ||
IIRC Brucey also had a module that can generate flowcharts |