topical media & game development

talk show tell print

#graphic-flex-image-effects-07-source-aether-textures-patterns-SolidPattern.ax

#graphic-flex-image-effects-07-source-aether-textures-patterns-SolidPattern.ax [swf] [flash] flex


  package aether.textures.patterns {
          
          import aether.textures.ITexture;
          
          import flash.display.BitmapData;
          
          public class @ax-graphic-flex-image-effects-07-source-aether-textures-patterns-SolidPattern implements ITexture {
                  
                  private var _color:uint;
          
                  public function @ax-graphic-flex-image-effects-07-source-aether-textures-patterns-SolidPattern(color:uint) {
                          _color = color;
                  }
                  
                  public function draw():BitmapData {
                          return new BitmapData(1, 1, true, _color);
                  }
          
          }
          
  }


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.