[Gimp-developer] RE: help writing plugin

DreamArtist raajahamsa at gmail.com
Wed Sep 13 07:30:59 PDT 2006


Hi Simon, thanks again for the help. I will read through these and try to
write my plugin. 

 

  _____  

From: Dream Artist Aspiring [mailto:raajahamsa at gmail.com] 
Sent: Tuesday, September 12, 2006 8:53 PM
To: gimp-developer at lists.XCF.Berkeley.EDU
Subject: help writing plugin

 

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.... 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /lists/gimp-developer/attachments/20060913/784da9ab/attachment-0001.html


More information about the Gimp-developer mailing list