FLTK logo

Re: [fltk.general] complex_polygon

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: complex_polygon Ian MacArthur Dec 31, 2021  
 
On 30 Dec 2021, at 08:56, holm.haavard wrote:
> 
> 
> Hello,
> 
> I want to implement my own version of fl_complex_polygon.
> I want to draw a concave polygon to a pixmap.
> 
> To me it seems like fltk have efficient argorithms to do that. I have been looking around to find the code where this is implemented without any luck.
> 
> Can any please give me a hint on how this is implemented in fltk / code ?

Håvard,

What is it you are trying to do?
You can pretty easily use the fltk drawing functions to draw concave polygons into an Fl_Image_Surface (or some other offscreen surface) and then use that for your pixmap.

I think others have understood your question as asking how the low-level drawing actually works at the OS level, but I’m not sure if that was what you were asking or not.

So... what are you trying to achieve, and we can see where we are...

Cheers.


ps: and a Happy New Year to all our readers (etc., at least for those following some variation on the Gregorian calendar scheme...)

-- 
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/53FF9DAA-D344-4DE5-ADBF-B4BA7AB18413%40gmail.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.