title: Create your own colour library in android for use with renderscript
body: <p>I would like to create my own colour library in order to apply some pixel processing using my own colours and not the default ones.</p>
  
  <p>For example when using the <code>rsUnpackColor8888</code> I would like to define my own black colour value somewhere. I know that I can define a colour like : </p>
  
  <pre><code>const float4 kBlack = {
      0.0f, 0.0f, 0.0f, 1.0f
  };
  </code></pre>
  
  <p>but the problem is I have to go through all pixels and compare the colour with the value I got from <code>rsUnpackColor8888</code> . I would appreciate any suggestions.</p>