# Color shifting

**URL:** <https://forum.kirupa.com/t/color-shifting/230132>\
**Category:** flash\
**Created:** [June 22, 2007, 9:29pm UTC](https://forum.kirupa.com/t/color-shifting/230132 "2007-06-22T21:29:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lexxon](https://avatars.discourse-cdn.com/v4/letter/l/45deac/32.png) [@Lexxon](https://forum.kirupa.com/u/Lexxon)\
**Post date:** [June 22, 2007, 9:29pm UTC](https://forum.kirupa.com/t/color-shifting/230132/1 "2007-06-22T21:29:08Z")

</div>

ok, what Im trying to do is create a function that takes any color you give it and shifts it lighter or darker and returns the new value.

Ex:

function receives 0x0000FF. It should then seperate it into its three colors, add a specified amount to each and retun it back in the same form. Any ideas on how I can do that?
