Re: [Gimp-developer] how to do fast drawing in plugin, pdb paintbrush api is slow

2010-10-06 Thread Alexia Death
On Wed, Oct 6, 2010 at 8:22 AM, 黄毅 yi.codepla...@gmail.com wrote: I'm trying to write a plugin to apply effects like this(http://mrdoob.com/projects/harmony/) to any path. I've done the coding, but it runs too slow, it speed several minutes to draw 7000 lines on my laptop. Currently i use

Re: [Gimp-developer] how to do fast drawing in plugin, pdb paintbrush api is slow

2010-10-06 Thread 黄毅
On Wed, Oct 6, 2010 at 2:39 PM, Alexia Death alexiade...@gmail.com wrote: On Wed, Oct 6, 2010 at 8:22 AM, 黄毅 yi.codepla...@gmail.com wrote: I'm trying to write a plugin to apply effects like this(http://mrdoob.com/projects/harmony/) to any path. I've done the coding, but it runs too slow, it

Re: [Gimp-developer] how to do fast drawing in plugin, pdb paintbrush api is slow

2010-10-06 Thread Alexia Death
On Wed, Oct 6, 2010 at 4:06 PM, 黄毅 yi.codepla...@gmail.com wrote: Make the layer invisible don't make it better, using pycairo does. With pycairo, drawing random lines with random alpha value on gtk surface, 10 strokes only take 21 seconds. Paint core offers a lot more features than cairo

[Gimp-developer] how to do fast drawing in plugin, pdb paintbrush api is slow

2010-10-05 Thread 黄毅
I'm trying to write a plugin to apply effects like this(http://mrdoob.com/projects/harmony/) to any path. I've done the coding, but it runs too slow, it speed several minutes to draw 7000 lines on my laptop. Currently i use following methods to draw lines: pdb.gimp_context_set_opacity(alpha)