The Bitten Bit
                              new BitmapData() as Pigiuz

                                   Piergiorgio Ni...
What is an image?




                              A bunch of Pixels!
giovedì 11 dicembre 2008                           2
What is a Pixel!?

                                x:61, y:54
                                red: 0
                     ...
Defining Colors

                    • A color is stored as an unsigned integer
                    • A color is composed b...
Generating Bitmaps


                    • BitmapData.draw(someIDrawableInstance)
                    • Perlin Noise magic...
Applying Filters

                    • Filters applied to BitmapData are more
                           performing but D...
Masking, Detecting
                               Interacting
                    • Use BitmapData.threshold() to mask a
 ...
Play Time


                                       rippler demo


giovedì 11 dicembre 2008                              8
Data Provider


                                           25lines demo
                                           PV3D de...
The bit has been bitten



giovedì 11 dicembre 2008                    10
Thank You!
                              new BitmapData() as Pigiuz

                                   Piergiorgio Niero
...
Upcoming SlideShare
Loading in …5
×

The Bitten Bit Piergiorgio Niero

1,160 views

Published on

My presentation at FlexCamp Italy 2008 at Adobe Max Europe in Milan. You can find examples and code at www.flashfuck.it

Published in: Technology, Art & Photos
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,160
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
3
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

The Bitten Bit Piergiorgio Niero

  1. 1. The Bitten Bit new BitmapData() as Pigiuz Piergiorgio Niero Flash platform developer specialized in games and visualization development mail: blog: info@flashfuck.it www.flashfuck.it giovedì 11 dicembre 2008 1
  2. 2. What is an image? A bunch of Pixels! giovedì 11 dicembre 2008 2
  3. 3. What is a Pixel!? x:61, y:54 red: 0 green: 200 blue: 15 it’s a color at a certain position giovedì 11 dicembre 2008 3
  4. 4. Defining Colors • A color is stored as an unsigned integer • A color is composed by 24 OR 32 bits (8 bit a channel) • A color is computed as a HEX color hex demo channel separation demo histogram demo giovedì 11 dicembre 2008 4
  5. 5. Generating Bitmaps • BitmapData.draw(someIDrawableInstance) • Perlin Noise magic cloud generator demo giovedì 11 dicembre 2008 5
  6. 6. Applying Filters • Filters applied to BitmapData are more performing but DESTRUCTIVE • You can apply only BitmapFilters (BevelFilter, BlurFilter, ColorMatrixFilter, ConvolutionFilter, DisplacementMapFilter, DropShadowFilter, GlowFilter, GradientBevelFilter, GradientGlowFilter, ShaderFilter*) • (take a look at Image Processing library by Joa Ebert) http://blog.joa-ebert.com/imageprocessing-library/ convolution demo displacement demo giovedì 11 dicembre 2008 6
  7. 7. Masking, Detecting Interacting • Use BitmapData.threshold() to mask a color within a bitmapData • Use BitmapData.getColorBoundsRect() to locate it • THEN INTERACT! :D threshold demo motion demo giovedì 11 dicembre 2008 7
  8. 8. Play Time rippler demo giovedì 11 dicembre 2008 8
  9. 9. Data Provider 25lines demo PV3D demo giovedì 11 dicembre 2008 9
  10. 10. The bit has been bitten giovedì 11 dicembre 2008 10
  11. 11. Thank You! new BitmapData() as Pigiuz Piergiorgio Niero Flash platform developer specialized in games and visualization development mail: blog: info@flashfuck.it www.flashfuck.it giovedì 11 dicembre 2008 11

×