Dream Artist Aspiring ([EMAIL PROTECTED]) wrote:
> Hi all, I am new to gimp and trying to learn plugins. I wanted to start by
> drawing a circle. So basically,
> for(t=0; t < 360; t++)
> {
>    x(t) = cos(t);
>    y(t) = sin(t);
>    col(t) = black;
>    paint col(t) at x(t), y(t) or better; draw a black line from
> x(t-1),y(t-1) to x(t),y(t).
> }
> 
> So, how do I proceed in general. Right now, I created a new image, created a
> new layer and added to image, filled the background color. After this I know
> how to compute x(t), y(t) and col(t). I dont know how to do the last step: "
> paint col(t) at x(t), y(t) or better; draw a black line from x(t-1),y(t-1)
> to x(t),y(t)". Can any one suggest how to do the last step. Thanks very much
> in advance....

I suggest to read my tutorial on that topic here:
  http://www.home.unix-ag.org/simon/gimp/guadec2002/gimp-plugin/html/
especially chapter 5 will be of interest to you. The tutorial is a bit
older so it might need slight adjustments in some parts (especially it
does not yet mention the PixelFetcher stuff) but in general it is still
worth a read.

There are lots of plugins available as source code in the gimp source,
reading the simpler plugins can be quite enlightening.

Please look at these ressources, if they don't help you I'll be happy to
answer further questions.

Bye,
        Simon

-- 
              [EMAIL PROTECTED]              http://simon.budig.de/
_______________________________________________
Gimp-developer mailing list
Gimp-developer@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-developer

Reply via email to