Hello. I was doing some work with the Appear and fade command and found a
problem when you are not using an opicaty of 1.0.
if you test it out with something like 0.4 it will always appear lighter than
normal.
this fixes it.
render: function(pos) {
if(pos != this.options.to) {
if(this.options.transition) pos = this.options.transition(pos);
pos = pos * (this.options.to-this.options.from);
pos += this.options.from;
}
if(this.options.beforeUpdate) this.options.beforeUpdate(this);
if(this.update) this.update(pos);
if(this.options.afterUpdate) this.options.afterUpdate(this);
},
that is the render command for Effect.Base.prototype
If you notice i tell it only only figure out what the value should be in the
variable pos is not equal to what you want to set the options.to value.
Please let me know if this is correct or you would do it another way.
Thanks.
Jon