Re: using a variable to increment another variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Andrei Thomaz wrote:
>             (nFrame 0)
>             (nLayerStep1 0)
>             (nLayerStep2 (/ 100 600))
>             (nLayerStep3 0)
>             (nLayerStep4 0)
>             (set! nOpacityLayer1 (+ nOpacityLayer1 nLayerStep1) )
>             (set! nOpacityLayer2 (+ nOpacityLayer2 nLayerStep2) )
>             (set! nOpacityLayer3 (+ nOpacityLayer3 nLayerStep3) )
>             (set! nOpacityLayer4 (+ nOpacityLayer4 nLayerStep4) )

The only variable that will have a changing value is nLayerStep2. The code you 
are showing has a value of 0 for the other three step values so the opacity 
value for those layers won't ever change.


Kevin.           |"What are we going to do today, Borg?"
Owner of Elecraft K2 #2172      |"Same thing we always do, Pinkutus:
                                 |  Try to assimilate the world!"
#include <disclaimer/favourite> |              -Pinkutus & the Borg

[Index of Archives]     [Gimp Developers]     [Gimp Users]     [Yosemite News]     [Epson Inkjet Printers]     [Scanners]     [Gimp's Home]     [Steve's Art]

&hbsp; Powered by Linux