[Y-devel] shapes?

Roberto A. F. me at roberto.foglietta.name
Thu Feb 26 17:48:40 GMT 2004


On Wed, 25 Feb 2004 12:35:14 +0200
Mikko Rantalainen <mira at cc.jyu.fi> wrote:

> 
> > Date: Tue, 24 Feb 2004 12:18:12 -0500
> > From: Aaron <drizzt321 at phpfreaks.com>
> > 
> > I don't think anybody has started work on, or thought about shapes,
> > but what about them? I've been poking around trying to figure out
> > how I would implement an ellipse/oval(that and line and rectangle
> > are the base shapes in most places), but I'm having a little bit of
> > trouble seeing where exactly I would fit the pieces together. For
> > example, where exactly would I have the work of putting each pixel
> > on the screen? I think the painter, but I haven't quite gotten how
> > to specifically extend/implement/use it to have it put stuff up on
> > the screen. I would like some guidence from those of you who have
> > been poking around in the source and are more familiar with the APIs
> > and such.
> 
> Let's not repeat the same mistakes the X did and implement real 
> bezier curves instead of only lines, rectangles and axis oriented 
> ellipse. A nice API would have only a line sequence method and a 
> polygon method and both take bezier curves as parameters. Something 
> like how OpenGL draws lines and polygons, but with bezier curves 
> instead of lines between vertexes. Perhaps an option to select 
> border style with a brush.

 Try take a look here

  https://www.fresco.org/

 probably You will find some code just done.


 Ciao,
-- 
   ,__    ,_     ,___   .-------=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.
   ||_)   ||\    ||_   /        Oh Capitano, Oh mio Capitano       |
   || \   ||¯\   ||¯     linuxgrp: https://www.lugge.net            |
   ¯¯  ¯° ¯¯  ¯° ¯¯  °   homepage: https://roberto.foglietta.name   |
\  Roberto A. Foglietta  reg num : #219348 by the Linux Counter    |
 `---------------------=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-'



More information about the Y-devel mailing list









2026 © www.Y-Windows.Org - All Rights Reserved