Android Code Snippet Cube-Spline Curve

Here is also an example of Cube-Spline made in B4A.
This is just an exercise, but can be used with appropriate modifications for other applications.

Good diversion ;)

ezgif.com-video-to-gif.gif


Here [XUI] Version
 

Attachments

Last edited:
Nice thing,
here an example in connection with GestureDetector
Many thanks for that...
Greetings Jürgen
 

Attachments

Hello,

I'm still working on the spline.
I'd like to know what formula
You calculate the points.
Maybe you can use the formula or the link
write up here.

Greetings from Jürgen
 
Hi Star-Dust,

Do you happen to have a method to "equalize" (and/or increase/decrease) the distance between each generated point ? I could then pass the array of points as parameter for some animation (tweening) methods. I could use the size of the array as start/end value.
Or do you have a better suggestion for that purpose.
 
Last edited:
Passing the array as a parameter is a good method. In the source, the first view is created just like that, so there is little change to it.

I have no particular suggestions in this regard.
 
Back
Top