QB64.org Forum

Active Forums => Programs => Topic started by: loudar on July 06, 2021, 07:40:50 pm

Title: Curve creator + modifier
Post by: loudar on July 06, 2021, 07:40:50 pm
Hello everyone!

It's been a while again, as I've been doing a lot of other stuff aside from QB64, but I had an idea of how to modify a curve and wanted to test it - here's the result! :D

If you just want to use it, the controls are in the top left corner.

My general idea behind it was this:
- create a linear vector from point A to B
- create a linear vector from point A to handle A
- create a function that maps the influence of the second vector on the first vector

This succeeded in my opinion, however it's not as smooth as beziƩr curves - as I said, this was my own approach.

I'm happy to see modifications!
Title: Re: Curve creator + modifier
Post by: bplus on July 06, 2021, 10:28:03 pm
That's kinda' neat! :)
Title: Re: Curve creator + modifier
Post by: euklides on July 07, 2021, 04:31:20 am
nice !
Title: Re: Curve creator + modifier
Post by: OldMoses on July 09, 2021, 07:23:55 am
I'm kind of new to the idea of Bezier curves, but that looks good to me. It got a subdirectory on my machine.