I don't need this...

alwaysbusy

Expert
Licensed User
Longtime User
it is all math

I once made these just for fun to find out how it worked. In another language, but I stopped working with it because it was/is actually very bad handling graphics. They would be a lot better if I would've known B4J back then...


This one was done in only 100 lines of code:


This was a lot bigger to build :

 

Star-Dust

Expert
Licensed User
Longtime User
..and the B4A-magician arrived promptly with an example.
You never never stop to surprise me @Star-Dust
Thank you, but it's an algorithm I've been studying at school. We did it in Turbo Pascal and then translated it into VB4.

Now I've only translated it into B4A, so no surprises.

Anyway what LucaMs is looking for is called C-Spline. If I find it I translate it too ... but they are too old files, about 20 years ago I do not know if still the Backup CD is still legible

 

LucaMs

Expert
Licensed User
Longtime User
... I remember that to draw a line using the Basic of my TI/994a this machine taken about 1h for 200px
This is why I'm asking... prev. post.

you draw points and then lines between them
Yes, but there is DrawLine (canvas) to draw a straight line.

do you need an example code?
Yes, thank you, but very little, just a single curve.
 

Star-Dust

Expert
Licensed User
Longtime User
Cookies are required to use this site. You must accept them to continue using the site. Learn more…