|
Author |
Topic: color-fan (Read 465 times) |
|
vent
|
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
|
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
|
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
|
|
|
vent
|
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/
|
|
|
|