code...
myColor = new Color(this.geezaBody);
myColorTransform = new Object();
// Set the values for myColorTransform
myColorTransform = { ra: '30', rb: '0', ga: '30', gb: '0', ba: '30', bb: '0', aa: '100', ab: '0'};
myColor.setTransform(myColorTransform);
fine, makes an object pale. But ive had to get these values with lots of trying, can someone please explain what the terms 'ammount' and 'offset' relate to each other, as defined in the reference (
•ra is the percentage for the red component (-100 to 100).
•rb is the offset for the red component (-255 to 255).
etc, etc
)
for example if i have a shape with fill colour 0xff0000 (full red) how do the ra, rb values effect this? And how would one cancel out a given transform, i.e what is its opposite?
myColor = new Color(this.geezaBody);
myColorTransform = new Object();
// Set the values for myColorTransform
myColorTransform = { ra: '30', rb: '0', ga: '30', gb: '0', ba: '30', bb: '0', aa: '100', ab: '0'};
myColor.setTransform(myColorTransform);
fine, makes an object pale. But ive had to get these values with lots of trying, can someone please explain what the terms 'ammount' and 'offset' relate to each other, as defined in the reference (
•ra is the percentage for the red component (-100 to 100).
•rb is the offset for the red component (-255 to 255).
etc, etc
)
for example if i have a shape with fill colour 0xff0000 (full red) how do the ra, rb values effect this? And how would one cancel out a given transform, i.e what is its opposite?