# Bitwise operation

**URL:** <https://forum.kirupa.com/t/bitwise-operation/308713>\
**Category:** flash\
**Created:** [April 28, 2010, 5:26pm UTC](https://forum.kirupa.com/t/bitwise-operation/308713 "2010-04-28T17:26:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pardoner](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@pardoner](https://forum.kirupa.com/u/pardoner)\
**Post date:** [April 28, 2010, 5:26pm UTC](https://forum.kirupa.com/t/bitwise-operation/308713/1 "2010-04-28T17:26:14Z")

</div>

I’m trying to make a color utility class the with adjust color based on their hue (color), saturation (amount of white), and back values.

Does anyone have any idea how – using bitwise operators – to increase the saturation, back or change the hue… something like this:

```auto

public function hue( hex:uint, amount:Number)uint
{

return newcolor
}

public function sturation( hex:uint, amount:Number)uint
{

return newcolor
}

public function black( hex:uint, amount:Number)uint
{

return newcolor
}

```
