Author Topic: Curve creator + modifier  (Read 2708 times)

0 Members and 1 Guest are viewing this topic.

Offline loudar

  • Newbie
  • Posts: 73
  • improve it bit by bit.
    • View Profile
Curve creator + modifier
« 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!
* curves.bas (Filesize: 7.48 KB, Downloads: 250)
Check out what I do besides coding: http://loudar.myportfolio.com/

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: Curve creator + modifier
« Reply #1 on: July 06, 2021, 10:28:03 pm »
That's kinda' neat! :)

Offline euklides

  • Forum Regular
  • Posts: 128
    • View Profile
Re: Curve creator + modifier
« Reply #2 on: July 07, 2021, 04:31:20 am »
nice !
Why not yes ?

Offline OldMoses

  • Seasoned Forum Regular
  • Posts: 469
    • View Profile
Re: Curve creator + modifier
« Reply #3 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.