Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
fading text layer
#3
(07-31-2023, 11:56 AM)Ofnuts Wrote: It would be easier with  pdb.plug_in_gauss(image, drawable, horizontal, vertical, method).

But perhaps using dark gray instead of black, or reducing the layer opacity a bit would work just as well.

If you want to stroke the convolve tool along the text path outline, two solutions:

  1. get the path, and get the polygon approximation of the strokes (gimp_vectors_stroke_interpolate) and then use that with convolve()
  2. use the path directly with gimp_drawable_edit_stroke_item() after a gimp_context_set_paint_method('gimp-convolve') (but I don't know how to set the parameters to the convolve operation, there is nothing in gimp-context-* for this).
I tried the pdb.plug_in_gauss() but I couldn't see any discernible difference may be I was doing it wrongly. 
For the colours I am using a variation of colours (I am simulating filling the forms by hand so I am using different colours with different opacity levels and different handwriting fonts). I will try the solutions and see later.

NB: The gimp.convolve() function's parameters are: 
drawable  - DRAWABLE,
pressure - FLOAT,
convolve-type - INT32 
num-strokes - INT32  Number of stroke control points (count each coordinate as 2 points) (num-strokes >= 2)
strokes - FLOATARRAY - Array of stroke coordinates: { s1.x, s1.y, s2.x, s2.y, ..., sn.x, sn.y }

it is the number of strokes and strokes parameters that I have a problem with.
Reply


Messages In This Thread
fading text layer - by mwas - 07-31-2023, 09:39 AM
RE: fading text layer - by Ofnuts - 07-31-2023, 11:56 AM
RE: fading text layer - by mwas - 07-31-2023, 04:57 PM
RE: fading text layer - by Ofnuts - 07-31-2023, 05:13 PM

Forum Jump: