FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Topics & Contributions
   Responsive Form, Games
(Moderator: REAS)
   color-fan
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: color-fan  (Read 465 times)
vent

WWW
color-fan
« on: Aug 31st, 2003, 9:36am »

while playing with some pixel fx -- I created this:
 
instructions:  
move mouse, hold mouse down and/or hit any key  
 
http://www.shapevent.com/cf/colorfan/
 
update:
update:
 
Code:

//in setup theSize=width*height;
 
 for(int i=0; i<(width*height)-(width); i++){
      pixels[i]=(blendC(pixels[i]<<8,(pixels[i+(width)]),15))  ;
    }
//------------------------------------
// blendC(colorA, colorB, mix amount)
//------------------------------------
public final int blendC(int color1, int color2, int amount) {
  int m1=(color2 & mrb);
  int m2=(color2 & mg);
  return (((amount * ((color1 & mrb) - m1) >> 8) +  m1) & mrb) |
  ((amount * ((color1 & mg) -  m2) >> 8) + m2) & mg;
}

just though it was interesting to show the pixel by pixel manipulation:  
 
Amazingly a similar filter can be recreated in Director as seen here:
 
http://www.shapevent.com/shape/solvent.htm
 
A gallery of drawings made with the above director file.
 
http://www.shapevent.com/Gsolvent/pics.htm
 
 
 
 
 
« Last Edit: Oct 3rd, 2003, 1:47am by vent »  

http://www.shapevent.com/
brew

WWW
Re: color-fan
« Reply #1 on: Aug 31st, 2003, 12:36pm »

I love the background - It makes it look like northen lights.
« Last Edit: Aug 31st, 2003, 12:37pm by brew »  
Koenie

170825270170825270koeniedesign WWW Email
Re: color-fan
« Reply #2 on: Aug 31st, 2003, 4:11pm »

That looks really nice! I agree with brew: rename it Aurora_Borealis
 
Koenie
 

http://koeniedesign.com
TomC
Guest
Email
Re: color-fan
« Reply #3 on: Aug 31st, 2003, 7:09pm »

That's quite a bit like my first publcity-worthy app... only yours is prettier.
 
http://www.tom-carden.co.uk/p5/colour_mix_blur/applet/
 
Needs a better name though...
 
Got told about Proce55ing on Friday - here's the other products of my weekend...
 
click the mouse over this one to see what the big deal is:
http://www.tom-carden.co.uk/p5/bouncing_square/applet
 
more pixel pushing things (slow since calculates map for each frame, press space for static map, click to reverse rotation):
http://www.tom-carden.co.uk/p5/tranform_map_simple/applet/
 
similar thing, but faster version (but sometimes runs out of memory):
http://www.tom-carden.co.uk/p5/tranform_map_cached/applet/
 
 
vent

WWW
Re: color-fan
« Reply #4 on: Sep 1st, 2003, 1:02am »

Thanks for the comments.
 
Nice stuff TomC. I look forward to seeing more of your experiments.  
 
 

http://www.shapevent.com/
Pages: 1 

« Previous topic | Next topic »