This file is indexed.

/usr/share/gimp/2.0/scripts/xtns-lankinen-fiery-steel.scm is in gimp-plugin-registry 7.20140602ubuntu3.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
;
; The GIMP -- an image manipulation program
; Copyright (C) 1995 Spencer Kimball and Peter Mattis
;
; Fiery Steel script  for GIMP 2.4
; Copyright (C) 9.5.1998 Urpo Lankinen.
; E-mail: <wwwwolf@iki.fi> Homepage: <URL:http://www.iki.fi/wwwwolf/>
;
; Tags: logo
;
; Author statement:
;  Distributed under GPL. Permission granted to distribute this script
;  with *anything* that has *something* to do with The GIMP.
;
; This script was inspired by "Terminator 2: Judgement Day"
; opening scene.
;
; The result: letters of steel (well, aluminium...) in hellfire.
; "You know, it was not really easy for a mere layman to figure out
; the flame-generation script"... but with a dragon around, it was
; much easier.
;
; For coolest results, Use Scott font from CorelDRAW!...
; (But Crillee/FreeFonts produces pretty kewl results, too.)
;
; I should make that Slab thing to make better "Terminator 2:
; Lookandfeeliation Day" effect...
; Terminator 2 fonts for free, anyone?
;
; --------------------------------------------------------------------
; Distributed by Gimp FX Foundry project
; --------------------------------------------------------------------
;   - Changelog -
;
; Greatly enhanced on 19.5.1998.
; Also added some tiny little enhancements on 29.5.1998
; More enhancements 18-19.7.1998
; Updated to Gimp2.4 (11-2007) http://www.gimpscripts.com
; --------------------------------------------------------------------
;
; This program is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2 of the License, or
; (at your option) any later version.
;
; This program is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with this program; if not, write to the Free Software
; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


;
;
;
(define (tmp-layer))
(define (bump-layer))
(define (fire1-layer))
(define (fire-layer))
(define (fire1-layer))
(define (fire2-layer))
(define (fire3-layer))
(define (turbul-layer))
(define (turbul2-layer))
(define (sendtog))
(define (script-fu-fiery-steel
     text font size grad perc txtbord darkentog
     ; slabtog
     fierytog sprd rndamt fulltog
     turbultog turbulence
;  turbdetail
;     sendtog ; Does not work, drats...
     )
  ; �ydx, that was a looooong feature list.
  (let* ((img (car (gimp-image-new 256 256 RGB)))
     (bg-layer (car (gimp-text-fontname img -1 0 0 text 10 TRUE
                        size PIXELS font)))
     (text-layer (car (gimp-text-fontname img -1 0 0 text 10 TRUE
                        size PIXELS font)))
     (width (car (gimp-drawable-width text-layer)))
     (height (car (gimp-drawable-height text-layer)))
     (text2-layer (car (gimp-text-fontname img -1 0 0 text 10 TRUE
                        size PIXELS font)))
     (brd-layer
      (car (gimp-layer-new img width height
                   GRAYA-IMAGE _"Border" 100 OVERLAY)))

     (old-fg (car (gimp-context-get-foreground)))
     (old-bg (car (gimp-context-get-background))))

    ; Previously it just jammed at merge-visible-layers, but when
    ; I added this, it somehow started working... Dunno why. =/
    (verbose 4)

    (gimp-image-undo-disable img)
    (gimp-drawable-set-name text-layer _"Text")
    (gimp-drawable-set-name text2-layer _"Text2")
    (gimp-drawable-set-name bg-layer _"Bg")
    (gimp-image-resize img width height 0 0)

    ; �KS�N =========================================================

    ; Background

    (gimp-image-set-active-layer img bg-layer)
    (gimp-selection-all img)
    (gimp-context-set-foreground '(0 0 0))
    (gimp-edit-bucket-fill bg-layer FG-BUCKET-FILL NORMAL 100 255 FALSE 1 1)
    (gimp-context-set-foreground old-fg)
    (gimp-selection-none img)

    ; Do the gradient
    (gimp-image-set-active-layer img text2-layer)
    (gimp-layer-set-lock-alpha text2-layer TRUE)     ; Preserve trans.
    (gimp-context-set-gradient grad)
    (gimp-blend text2-layer
        CUSTOM NORMAL LINEAR 100 0 REPEAT-NONE FALSE FALSE 0 3 0.2
        (/ width 2) 0 (/ width 2) height)
    (gimp-layer-set-lock-alpha text2-layer FALSE)
    ; and hide the bg and this new one
    (gimp-drawable-set-visible bg-layer FALSE)
    (gimp-drawable-set-visible text-layer TRUE)
    (gimp-drawable-set-visible text2-layer FALSE)

    ; Add white layer
    (set! tmp-layer
      (car (gimp-layer-new img width height RGB-IMAGE _"Temp" 100 NORMAL)))
    (gimp-image-add-layer img tmp-layer 3)
    (gimp-image-set-active-layer img tmp-layer)
    (gimp-selection-all img)
    (gimp-context-set-foreground '(255 255 255))
    (gimp-edit-bucket-fill tmp-layer FG-BUCKET-FILL NORMAL 100 255 FALSE 1 1)
    (gimp-context-set-foreground old-fg)
    (gimp-selection-none img)

    ; Merge, blur, bump
    (set! bump-layer
      (car (gimp-image-merge-visible-layers img EXPAND-AS-NECESSARY)))
    (gimp-drawable-set-visible bg-layer TRUE)
    (plug-in-gauss-iir 1 img bump-layer txtbord TRUE TRUE)
    (gimp-drawable-set-visible bump-layer FALSE)
    (gimp-drawable-set-visible text2-layer TRUE)

    ; Twiddle the brightness a little
    (if (eq? darkentog TRUE)
    (gimp-brightness-contrast text2-layer -20 -20))

    ; Bumpmapping depends on do we need the flames or not...
    (plug-in-bump-map 1 img text2-layer bump-layer
              (if (eq? fierytog FALSE) 135.00 90.00)
              (if (eq? fierytog FALSE) 45.00 30.0)
              6 0 0 0 0 FALSE FALSE LINEAR)

    (gimp-image-remove-layer img bump-layer)

    ; And that was the easy part. ::sigh::

    (if (eq? fierytog TRUE)
    (let* ((sheight (* height perc))
          (ycoord (- height sheight)))
                    ; Add a layer
      (set! fire1-layer
        (car (gimp-layer-new img width height RGBA-IMAGE _"Fire 1"
                     100 NORMAL)))
      (gimp-image-add-layer img fire1-layer 0)
                    ; Clear it
      (gimp-selection-all img)
      (gimp-edit-clear fire1-layer)
                    ; Make lower part red
;      (gimp-rect-select img 0 ycoord width sheight REPLACE FALSE 0)
      (gimp-context-set-foreground '(180 0 20))
      (gimp-edit-bucket-fill fire1-layer FG-BUCKET-FILL NORMAL
                100 255 FALSE 1 1)
      (gimp-selection-none img)

      ; Do nasty stuff to the lower fire layer
      (plug-in-ripple 1 img fire1-layer
              (/ width 8) (/ height 8) 1 0 1 FALSE FALSE)
      (plug-in-whirl-pinch 1 img fire1-layer
                   45 0 0.7)

      ; Copy the layer, make it yellow, shift down a bit
      (set! fire2-layer
        (car (gimp-layer-copy fire1-layer TRUE)))
      (gimp-image-add-layer img fire2-layer 0) ; top
      (gimp-drawable-set-name fire2-layer _"Fire 2")

      (gimp-image-set-active-layer img fire2-layer)
      (gimp-layer-set-lock-alpha fire2-layer TRUE)
      (gimp-context-set-foreground '(228 170 4)) ; Yellow
      (gimp-selection-all img)
      (gimp-edit-bucket-fill fire2-layer FG-BUCKET-FILL NORMAL
                100 255 FALSE 1 1)
      (gimp-layer-set-lock-alpha fire2-layer FALSE)
      (gimp-selection-none img)

      (gimp-channel-ops-offset fire2-layer FALSE 1 0 (/ height 8))

      ; The third fire layer
      (set! fire3-layer
        (car (gimp-layer-copy fire1-layer TRUE)))
      (gimp-image-add-layer img fire3-layer 0) ; top
      (gimp-drawable-set-name fire3-layer _"Fire 3")
      (gimp-channel-ops-offset fire3-layer FALSE 1 0
                   (* 2.6 (/ height 8)))

      ; resize the said layer...
      (gimp-image-set-active-layer img fire3-layer)
      (gimp-selection-all img)
      (gimp-scale fire3-layer TRUE 0
              (* height 0.6) width height)

      ; spread, spindle, mutilate
      (plug-in-spread 1 img fire1-layer 0 (* 3 sprd))
      (plug-in-spread 1 img fire2-layer 0 (* 2 sprd))
      (plug-in-spread 1 img fire3-layer 0 (* 1.5 sprd))

      ; Merge the layers
      (gimp-drawable-set-visible text2-layer FALSE)
      (gimp-drawable-set-visible bg-layer FALSE)

      (set! fire-layer
        (car (gimp-image-merge-visible-layers
              img EXPAND-AS-NECESSARY)))
      (gimp-drawable-set-name fire-layer _"Fire")

      (gimp-layer-set-lock-alpha fire-layer TRUE)
      (plug-in-gauss-rle 1 img fire-layer (* 2 sprd) TRUE TRUE)
      (gimp-layer-set-lock-alpha fire-layer FALSE)

      (gimp-drawable-set-visible text2-layer TRUE)
      (gimp-drawable-set-visible bg-layer TRUE)

      (plug-in-noisify 1 img fire-layer TRUE 0.2 0.2 0.2 0.2)
      (plug-in-noisify 1 img fire-layer TRUE 0.2 0.2 0.2 0.2)

      (plug-in-gauss-rle 1 img fire-layer (* 2 sprd) TRUE TRUE)

      ; Then, Let's nastyize it.
      (gimp-layer-set-lock-alpha fire-layer TRUE)
      (plug-in-randomize-pick 1 img fire-layer rndamt 80 10 6942)
      (gimp-layer-set-lock-alpha fire-layer FALSE)

      ; Here we use another kewl displacement thing... it really rules.
      ; Displacement was one of the coolest things I knew about back
      ; in 0.59 era.

      (if (eq? turbultog TRUE)
          (begin
        (set! turbul-layer
              (car (gimp-layer-new img width height
                       RGBA-IMAGE _"Turbul"
                       100 NORMAL)))
        (gimp-image-add-layer img turbul-layer 0)


        ; We used Solid Noise here, but it didn't look very cool.
        ; This actually works.
        (plug-in-plasma 1 img turbul-layer 42 turbulence)
        (gimp-desaturate turbul-layer)
        (plug-in-c-astretch 1 img turbul-layer)


        ; Add more turbulence. Heavy magery follows. You are not
        ; expected to understand this. It was a result of all-night
        ; weaving of Spells of Technomancy. (In other words,
        ; dark magic follows, beware!)

        ; New layer
        (set! turbul2-layer
              (car (gimp-layer-new img width height
                       RGBA-IMAGE _"Turbul2"
                       100 NORMAL)))
        (gimp-image-add-layer img turbul2-layer 0)
        (gimp-image-set-active-layer img turbul2-layer)
        ; Uh, great. Now more fun.

        ; First half
        (gimp-selection-none img)
        (gimp-rect-select img 0 (/ height 2) width (/ height 2)
                  0 FALSE 10)
        (gimp-context-set-foreground '(0 0 0)) ; Black
        (gimp-edit-bucket-fill turbul2-layer
                  FG-BUCKET-FILL NORMAL 100 255 FALSE 1 1)

        ; Second half
        (gimp-context-set-foreground '(255 255 255)) ; White
        (gimp-selection-invert img)
        (gimp-edit-bucket-fill turbul2-layer
                  FG-BUCKET-FILL NORMAL 100 255 FALSE
                  (+ (/ height 2) 1) 1)
        (gimp-selection-none img)

        (plug-in-ripple 1 img turbul2-layer
                (/ width 8) (/ height 4) 1 0 1 FALSE FALSE)

        (plug-in-spread 1 img turbul2-layer (/ width 12) (/ height 12))

        (plug-in-gauss-rle 1 img turbul2-layer (/ width 5) TRUE TRUE)

        ; Bleah
        (plug-in-oilify 1 img turbul2-layer 6 0)

        ; First displacement
        (plug-in-displace 1 img turbul-layer
                  (* 1.5 turbulence) (* 3 turbulence)
                  TRUE TRUE
                  turbul2-layer turbul2-layer 1)
        (gimp-image-remove-layer img turbul2-layer)


        ; Second displacement
        (plug-in-displace 1 img fire-layer
                  (* 1.5 turbulence) (* 3 turbulence)
                  TRUE TRUE
                  turbul-layer turbul-layer 1) ; SMEAR
        (gimp-image-remove-layer img turbul-layer)

        ))

      (plug-in-oilify 1 img fire-layer 3 0)

      ; Finally, make the flames burrrrrn...
      (gimp-layer-set-mode fire-layer ADDITION)

      (if (eq? fulltog FALSE)
          (begin
        (gimp-drawable-set-visible bg-layer FALSE)
        (set! text2-layer
              (car (gimp-image-merge-visible-layers
                img EXPAND-AS-NECESSARY)))
        (gimp-layer-set-visible bg-layer TRUE)))
      )) ; End of fiery stuff

    ; End of Action(tm) =============================================
    (gimp-context-set-background old-bg)
    (gimp-context-set-foreground old-fg)
    (gimp-image-undo-enable img)
    (gimp-display-new img)))

;
; Hajaa-ho!
;
(script-fu-register
 "script-fu-fiery-steel"
 _"Fiery Steel..."
 _"An effect inspired by the Terminator 2: Judgement Day\n opening titles. Metallic letters in hellfire."
 "Weyfour WWWWolf (Urpo Lankinen) <wwwwolf@iki.fi>"
 "Weyfour WWWWolf"
 "9 May 1998 (Enhanced greatly on 19 May, 29 May, 18-19 July)"
 ""
 SF-STRING     _"Text String"           "Fiery"
 SF-FONT       _"Font"                  "Utopia Bold Italic"
 SF-ADJUSTMENT _"Font Size"             '(180 2 1000 1 10 0 1)
 SF-GRADIENT   _"Gradient"              "Flare Glow Radial 1"
 SF-ADJUSTMENT _"Engulfment percentage" '(1 0 1 0.01 0.1 2 0)
 SF-ADJUSTMENT _"Text border"           '(5 0 1000 1 10 0 1)

 SF-TOGGLE     _"Darken"               TRUE

 SF-TOGGLE     _"Fire effects?"         TRUE

 SF-ADJUSTMENT _"Spread coefficient"    '(35 0 1000 1 10 0 1)
 SF-ADJUSTMENT _"# of fire randomizes"  '(20 0 1000 1 10 0 1)

 SF-TOGGLE     _"Fire over background"   FALSE

 SF-TOGGLE     _"Add flame turbulence"   TRUE
 SF-ADJUSTMENT _"Turbulence"             '(2 0 1000 1 10 0 1)
)

(script-fu-menu-register "script-fu-fiery-steel"
                         "<Image>/File/Create/FX-Foundry/Logos/")

; BTW, if you're wondering what "RGRNCA" means, surf to:
; <URL:http://www.iki.fi/wwwwolf/games/nethack/index.html>