Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4125048
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:49:08+00:00 2026-05-20T23:49:08+00:00

At the moment I have a program that demonstrates hypotrochoids and epitrochoids (aka Spirograph

  • 0

At the moment I have a program that demonstrates hypotrochoids and epitrochoids (aka Spirograph http://www.math.psu.edu/dlittle/java/parametricequations/spirograph/index.html ).

At first I was drawing the shape using just straight lines, but realised the jagged edges weren’t so good. I then introduced a curveTo() Bezier curve using two iterations of circular rotations (and resulting x, y points), one for the control point and one for the endpoint (a quadratic curve).

Now the shape is curvier but it’s still not curvy enough, it still has some sharp angles instead of a smooth shape.

Does anyone know how I can render a more curved line, using either the curveTo() method or some other implementation for having constant curves?

I was thinking maybe using the circular tangential across the jagged edge, and then replacing the current line with the part of the circle that is tangential.

How could I go about implementing something like that?

EDIT:- I should add that I’m using the animation thread to render the lines.

The image shows that only segments of the line are curved http://dl.dropbox.com/u/12814074/Screen%20shot%202011-04-02%20at%2007.31.56.png

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T23:49:08+00:00Added an answer on May 20, 2026 at 11:49 pm

    It sounds like the control points should be tangential to the curve. If you’re just using another point on the curve, this is not the case. Try placing the control point where the tangents of 2 points meet:

    enter image description here

    P.S. What do you mean “using the animation thread”?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a program that needs several third-party libraries, and at the moment it
I have a Java client that calls a web service at the moment using
For the moment the best way that I have found to be able to
I have a c# program that access a java program by tcp. In my
I have a program that can have a lot of parameters (we have over
I have a program that (amongst other things) has a command line interface that
Not a terribly good question, sorry. I have a program that needs to be
I have created a program that decrypts whats stored in a export file from
I have a program that needs to store data values and periodically get the
I have a Haskell program that uses Gtk/GtkGLExt and runs fine on Linux (up-to-date

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.