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)
[snip]
> (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.
--
Cheers!
Kevin.
http://www.ve3syb.ca/ |"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
[Gimp Developers] [Gimp Users] [Photos] [Yosemite News] [Yosemite Photos] [Epson Inkjet] [Scanner] [Gimp's Home] [GIMP Books] [Steve's Art]
![]() |
![]() |