• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java 2D bezier curves

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I've been told to write the code that allows you to interactively control a bezier curve by dragging the control points in applet.
Now, I can write the code for this to draw a normal cubic curve with the usual two control points, but what I've been told to do is to allow my bezier curve to be longer by allowing it to have more than two control points (4-5). What I believe I have to do is to make another cubic curve, and somehow link the end point of the first bezier curve to the start point of the second bezier curve. But I'm not sure if this is the right thing to do. I would greatly appreciate it if someone could point me in the right direction.

(I wasn't sure if this is the best place to post this, so please accept my appologies if it's not in the right place)

Many thanks
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moving to the GUI forum, as there seems to be nothing applet-specific about the question.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic