Author Topic: Draw any curve using only circles  (Read 2153 times)

0 Members and 1 Guest are viewing this topic.

Offline STxAxTIC

  • Library Staff
  • Forum Resident
  • Posts: 1091
  • he lives
Draw any curve using only circles
« on: February 14, 2022, 08:07:36 am »
REDACTED
« Last Edit: April 13, 2022, 09:37:38 am by STxAxTIC »
You're not done when it works, you're done when it's right.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • Steve’s QB64 Archive Forum
Re: Draw any curve using only circles
« Reply #1 on: February 14, 2022, 09:53:47 am »
Draw any curve using only circles -- except for one solving the two roads problem!!  https://qb64forum.alephc.xyz/index.php?topic=2138.0

You can't use a circle to solve that problem because the slope of the slope of the slope won't slope the slope of the sloping, making a sloping mess!  All you can do is use a bezier curve to find the solution, and that's not possible with circles.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline STxAxTIC

  • Library Staff
  • Forum Resident
  • Posts: 1091
  • he lives
Re: Draw any curve using only circles
« Reply #2 on: February 14, 2022, 10:35:42 am »
Community vote: should I give Steve the time of day or consider him a troll? 5 votes in the affirmative will warrant a response.
You're not done when it works, you're done when it's right.

Offline _vince

  • Seasoned Forum Regular
  • Posts: 422
Re: Draw any curve using only circles
« Reply #3 on: February 14, 2022, 11:07:03 am »
You can't use a circle to solve that problem because the slope of the slope of the slope won't slope the slope of the sloping, making a sloping mess!  All you can do is use a bezier curve to find the solution, and that's not possible with circles.

Imagine having to mow the lawn or run a tractor/combine harvester in a bezier curve, Bill needs to learn to face reality and think outside the box every once in a while.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
Re: Draw any curve using only circles
« Reply #4 on: February 14, 2022, 11:36:56 am »
This is pretty cool:

Offline STxAxTIC

  • Library Staff
  • Forum Resident
  • Posts: 1091
  • he lives
Re: Draw any curve using only circles
« Reply #5 on: February 14, 2022, 06:29:26 pm »
Damn bplus I thought you were gonna come out of the gates with some kind of mod for this program - but instead a link to Mathologer? Solid stuff. I'm really glad the bad guy from Indiana Jones found a new niche after having his face melted off when he opened the Lost Ark.
You're not done when it works, you're done when it's right.

Offline STxAxTIC

  • Library Staff
  • Forum Resident
  • Posts: 1091
  • he lives
Re: Draw any curve using only circles
« Reply #6 on: February 14, 2022, 10:45:09 pm »
REDACTED
« Last Edit: April 13, 2022, 09:37:51 am by STxAxTIC »
You're not done when it works, you're done when it's right.

Offline STxAxTIC

  • Library Staff
  • Forum Resident
  • Posts: 1091
  • he lives
Re: Draw any curve using only circles
« Reply #7 on: February 21, 2022, 01:20:46 pm »
Just updated the top post. The code explains itself a lot better while running, so much better that I recommend you forget what you've seen and just run the new one. Check it out if you've got the circles for it. I understand if you don't.

Draw some squares, or draw your house or something.
You're not done when it works, you're done when it's right.

Offline STxAxTIC

  • Library Staff
  • Forum Resident
  • Posts: 1091
  • he lives
Re: Draw any curve using only circles
« Reply #8 on: February 23, 2022, 04:40:54 pm »
REDACTED
« Last Edit: April 13, 2022, 09:38:06 am by STxAxTIC »
You're not done when it works, you're done when it's right.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
Re: Draw any curve using only circles
« Reply #9 on: February 23, 2022, 04:53:00 pm »
 
image_2022-02-23_165230.png


This thing (older version now) just keeps on going like the bunny...

Offline STxAxTIC

  • Library Staff
  • Forum Resident
  • Posts: 1091
  • he lives
Re: Draw any curve using only circles
« Reply #10 on: February 23, 2022, 05:21:36 pm »
Its pretty amazing how good it does before being finished. You can treat the graphs at the bottom like progress indicators:

 
fdsafdfdf.png


or pause right there, take out only the red curve, and you have a pretty cool B+ signature
« Last Edit: February 23, 2022, 05:31:05 pm by STxAxTIC »
You're not done when it works, you're done when it's right.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
Re: Draw any curve using only circles
« Reply #11 on: February 23, 2022, 05:52:02 pm »
So what's going on along the bottom edge of the newest version? a log curve and a bar code or a bottle brush :)

I wonder if this is 2D version of predicting pattern of yes and no, right or left...

Offline STxAxTIC

  • Library Staff
  • Forum Resident
  • Posts: 1091
  • he lives
Re: Draw any curve using only circles
« Reply #12 on: February 23, 2022, 06:11:17 pm »
REDACTED
« Last Edit: April 13, 2022, 09:38:26 am by STxAxTIC »
You're not done when it works, you're done when it's right.

Offline SpriggsySpriggs

  • Forum Resident
  • Posts: 1145
  • Larger than life
    • GitHub
Re: Draw any curve using only circles
« Reply #13 on: February 23, 2022, 06:37:14 pm »
I wish I understood math more. This is impressive stuff, Bill!
Shuwatch!

Offline Pete

  • Forum Resident
  • Posts: 2361
  • Cuz I sez so, varmint!
Re: Draw any curve using only circles
« Reply #14 on: February 25, 2022, 06:30:02 pm »
Hey give Steve a break, he comes from Virginia, which has a fair share of TrOLL roads.

Pete
Want to learn how to write code on cave walls? https://www.tapatalk.com/groups/qbasic/qbasic-f1/