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

  • cubespline.zip
    9.9 KB · Views: 567
Last edited:

Joe73

Active Member
Licensed User
Nice thing,
here an example in connection with GestureDetector
Many thanks for that...
Greetings Jürgen
 

Attachments

  • GD-Project.zip
    10.8 KB · Views: 327

Joe73

Active Member
Licensed User
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
 

Star-Dust

Expert
Licensed User
Longtime User

TelKel81

Active Member
Licensed User
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:

Star-Dust

Expert
Licensed User
Longtime User
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.
 
Top