RSS/Atom feed Twitter
Site is read-only, email is disabled

Curve and Alpha problem

This discussion is connected to the gimp-user-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

2 of 2 messages available
Toggle history

Please log in to manage your subscriptions.

Curve and Alpha problem Ivan Zenkov 23 Sep 14:33
  Curve and Alpha problem Sven Neumann 24 Sep 15:58
Ivan Zenkov
2004-09-23 14:33:47 UTC (over 19 years ago)

Curve and Alpha problem

Hi, all.

And nevertheless... Why my code doesn't work with alpha?

(define (spline)
(let* ((a (cons-array 8 'byte))) (aset a 0 0 0)
(aset a 1 85 20)
(aset a 2 170 40)
(aset a 3 255 60)
a))

(gimp-curves-spline text-layer 4 4 (spline))

I want simple create a transparent text with script-fu, like in tutorial "Transparent Objects" written by Ron Scott (http://gug.sunsite.dk/tutorials/ronq2/). For this purpose I need to create array on a curve http://img52.exs.cx/img52/5495/curve-alpha.png that to make the selection area, transparent http://img79.exs.cx/img79/6625/curve-alpha2.png

But my code for some reason does not work with alpha. Maybe this is a bug, or most likely I simply have not correctly created array. Uncompleted code of my script can be found here http://registry.gimp.org/plugin?id=4729

Please help.

Sven Neumann
2004-09-24 15:58:12 UTC (over 19 years ago)

Curve and Alpha problem

Hi,

Ivan Zenkov writes:

(define (spline)
(let* ((a (cons-array 8 'byte))) (aset a 0 0 0)
(aset a 1 85 20)
(aset a 2 170 40)
(aset a 3 255 60)
a))

(gimp-curves-spline text-layer 4 4 (spline))

Just for the record: This has been filed as bug #153635 and it has now been fixed in both the stable and the development branch.

Sven