Re: [pygtk] Curves, splines and libart

2003-03-06 Thread cybolic
Thanks all three of you for your answers.

I've already implemented an algorithm using the method I described in my
mail, if anyone is interrested in it... I'ts a but funny though, but gives
interresting results, probably has best use in interactive demos :) .

Cheers...

Christian / Cybolic


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Curves, splines and libart

2003-03-05 Thread Gustavo J. A. M.
On Ter, 2003-03-04 at 15:16, [EMAIL PROTECTED] wrote:
 Does anyone know how to draw an spline-curve?
 Or any other fancy type of curve that the user can drag and tweak?
 Is using art (libart) an option?

  libart in python? no, sorry.
  Maybe you should try gnomeprint. If you want interactivity, you should
use gnome.canvas. They are both in the gnome-python package.

 
 Cheers...
 Christian / Cybolic
 
 
 ___
 pygtk mailing list   [EMAIL PROTECTED]
 http://www.daa.com.au/mailman/listinfo/pygtk
 Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
-- 
Gustavo João Alves Marques Carneiro
[EMAIL PROTECTED] [EMAIL PROTECTED]


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Curves, splines and libart

2003-03-05 Thread cybolic
   libart in python? no, sorry.

Okay, but does anyone know _how_ one can create a curve?

I've though about using four x,y coordinates, start_x, start_y,
modify_left_x, modify_left_y, modify_right_x, modify_right_y, and end_x,
end_y, and then calculating a straight line from start_x,start_y to
end_x,end_y, modifying the line afterwards, but I can't quite get my head
wrapped around how.

   Maybe you should try gnomeprint. If you want interactivity, you should
 use gnome.canvas. They are both in the gnome-python package.

I'll look, but does it handle curves? And also, I'd rather use something
in Gtk or program it myself to avoid to many dependencies.


Cheers...

Cybolic


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


Re: [pygtk] Curves, splines and libart

2003-03-05 Thread Andrew P. Lentvorski, Jr.
On Wed, 5 Mar 2003 [EMAIL PROTECTED] wrote:

 Okay, but does anyone know _how_ one can create a curve?

You need to go get a basic computer graphics textbook.  Computer 
Graphics: Principles and Practice in C (2nd Edition) by Foley, et al. is 
one of the canonical references.

Splines require that you play with the derivatives and match those up as
well.  Normally, the control points are related to concavity changes on
the derivatives.

Good luck,
-a

___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


[pygtk] Curves, splines and libart

2003-03-04 Thread cybolic
Does anyone know how to draw an spline-curve?
Or any other fancy type of curve that the user can drag and tweak?
Is using art (libart) an option?

Cheers...
Christian / Cybolic


___
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/