RE: [Gimp-user] Scheme question

2004-10-18 Thread G . DeSercey
> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf 
> Of Steve Crane
> Sent: 16 October 2004 00:01
> To: [EMAIL PROTECTED]
> Subject: [Gimp-user] Scheme question

> At the moment I am trying to work out how to do integer 
> division.  I want to draw guides mapping the rule of thirds 
> and want to ensure that I get an integer result when I divide 
> the image height and width by 3.
> How would I do this?
> 
> Thanks
> --

There is no internal function to convert to integer, but the following will
do it:
(define (floor x) (- x (fmod x 1)))
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


RE: [Gimp-user] Script-Fu Help

2003-09-28 Thread G . DeSercey
-Modify all three defines to include one more parameter, as such: (define
(... s-offset-y bg-colour)

-Modify the call to apply-3d-outline-logo-effect in the two
(script-fu-3d-outline-... to include the same parameter:
(apply-3d-outline-logo-effect ... s-offset-y bg-colour)

-In each script-fu-register, add the line:
SF-COLOR _"Background Colour" '(255 255 255))
below the last SF-ADJUSTMENT ... and remove the second closing bracket at
the end of that line so it reads: SF-ADJUSTMENT _"Shadow Y offset" '(0 0 200
1 5 0 1)

-Finally, in apply-3d-outline-logo-effect find the line: (gimp-invert layer
3) and add the following immediately after: (gimp-by-color-select layer3
'(255 255 255) 0 REPLACE FALSE FALSE 0 FALSE) (gimp-palette-set-background
bg-colour) (gimp-edit-fill layer3 BG-IMAGE-FILL) (gimp-selection-none img)

Guillaume 

> -Original Message-
> From: Zeke Lightwave [mailto:[EMAIL PROTECTED]
> Sent: 26 September 2003 07:20
> To: [EMAIL PROTECTED]
> Subject: [Gimp-user] Script-Fu Help
> 
> 
> I'm trying to edit the 3D-Outline script so I can change the
> background 
> to being something non-white, can anybody help me with this? 
> I've looked 
> at the source and tried changing the colors where it set's the bg/fg, 
> but that didn't help . . TIA.
> 
> -Brent G
> 
> ___
> Gimp-user mailing list
> [EMAIL PROTECTED]
> http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user
> 
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


RE: [Gimp-user] Re: RGB to BGR script works, but how to run auto levels?

2003-09-02 Thread G . DeSercey
> -Original Message-
> From: Walter Francis [mailto:[EMAIL PROTECTED] 
> Sent: 31 August 2003 07:17
> To: Guillermo S. Romero / Familia Romero
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Gimp-user] Re: RGB to BGR script works, but how 
> to run auto levels?
> 
> 
> I have it down to the following (although I'd still love an 
> autolevels ;-), 
> is there any way to pass a list to gimp-image-delete, because 
> I've tried 
> several things and I always get invalid argument.  I tried:
> 
> (g-i-d new-image-rgb)
> (g-i-d (new-image-rgb))
> (g-i-d '(new-image-rgb))
> 
> 

Try this: (mapcar gimp-image-delete (butlast new-image-rgb))
Note that it need the butlast to get rid of the -1 at the end of the list
otherwise gimp-image-delete chokes on it.
mapcar returns the result of applying the one (call mapcar1) or two (call
mapcar2) operand function to each element or the one or two following list.

Guillaume
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


[Gimp-user] Bug with Sobel filter ?

2003-07-25 Thread G . DeSercey
Hello,

I think I've found a bug with the sobel filter. However before I fill a bug
report I'd like to know if it is just specific to the windows version. Can
people on Linux reproduce this:

-Create a new image (default: 256 x 256, white background)
-Swap foreground and background colour so that white is foreground
-Use the text tool to create some text, do not anchor the text but promote
it to a new layer
-text layer to image size
-uncheck keep transparency
-Apply sobel

This result in the outline of the text layer before it was resized. How can
that be ?

However if you do this (which should be equivalent to what is above):

-Create a new image(default: 256 x 256, white background)
-Swap foreground and background colour so that white is foreground
-Create a new transparent layer
-Use the text tool to create some text, anchor it to the transparent layer
The result is the same as above but when I apply sobel, it works

Guillaume
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user


RE: [Gimp-user] how to write vertical text

2003-07-21 Thread G . DeSercey
In the file area of the gimpwin-user yahoo group, there's a script I wrote
that will fit text to a path. It won't write the text vertically the way you
want, but it will work nicely for arcs. I think you need to be a member of
the group to access the file. The url is:
http://groups.yahoo.com/group/gimpwin-users/files/Scripts/text-along-path.sc
m 

Guillaume

> -Original Message-
> From: Tom Williams [mailto:[EMAIL PROTECTED] 
> Sent: 21 July 2003 05:02
> To: Harish Narayanan
> Cc: [EMAIL PROTECTED]
> Subject: Re: [Gimp-user] how to write vertical text
> 
> 
> Harish Narayanan wrote:
> 
> > You could try the "Text Circle" in the GIMP menu. Xtns > 
> Script-fu > 
> > Logos > Text Circle I think.
> >
> > Harish
> 
> Thanks... I've tried that but it curved the text TOO much... :)
> 
> Peace...
> 
> Tom
___
Gimp-user mailing list
[EMAIL PROTECTED]
http://lists.xcf.berkeley.edu/mailman/listinfo/gimp-user