wonderfl - build flash online

  • signin
  • codes
    • page view ranking
    • favorite ranking
    • forked count ranking
  • users
    • page view ranking
    • favorite ranking
    • forked count ranking
  • games
    • make games
    • play games
  • jobs
    • want a job?
    • post a job
  • tags
    • Flash/Actionscript keywords
  • Q&A
    • new questions
  • wonderfl?
    • what is wonderfl?
    • help!
    • libraries
    • wiki
    • APIs
    • developer's blog
    • contact

code search

Search result

ActionScript3 Search Result For "colorMatrixFilter"

1 - 10 of 794 results

sort

  • match
  • new

test

busyohigebusyohige

    • forked:0
    • favorite:0
    • lines : 54

CSS

  1.             world2.blendMode = "add";
  2.             var blur : BlurFilter = new BlurFilter();
  3.             blur.blurX = 16;//水平方向のぼかし
  4.             blur.blurY = 16;//垂直方向のぼかし
  5.             var matrix:Array = [0.3, 0.59, 0.11, 0, 0,
  6.            0.3, 0.59, 0.11, 0, 0,
  7.            0.3, 0.59, 0.11, 0, 0,
  8.            0, 0, 0, 1, 0];
  9.            var grayscaleFilter:ColorMatrixFilter = new ColorMatrixFilter(matrix);
  10.             world2.filters = [blur,grayscaleFilter];           
  11.             
  12.             function loop(e:Event):void{
  13.             cube1.rotationX +=  5;
  14.             cube1.rotationY +=  5;
  15.             cube2.rotationX +=  5;
  16.             cube2.rotationY +=  5;
  17.     
  18.             }    

test

 

forked from: Blazing Effect

hacker_akyifj_9hacker_akyif..

    • forked:0
    • favorite:0
    • lines : 250

CSS

  1.     import flash.display.BlendMode;
  2.     import flash.display.DisplayObject;
  3.     import flash.display.GradientType;
  4.     import flash.display.Loader;
  5.     import flash.display.LoaderInfo;
  6.     import flash.display.Sprite;
  7.     import flash.display.StageQuality;
  8.     import flash.events.Event;
  9.     import flash.events.MouseEvent;
  10.     import flash.filters.ColorMatrixFilter;
  11.     import flash.filters.ConvolutionFilter;
  12.     import flash.filters.DropShadowFilter;
  13.     import flash.geom.ColorTransform;
  14.     import flash.geom.Matrix;
  15.     import flash.geom.Point;
  16.     import flash.geom.Rectangle;
  17.     import flash.net.URLRequest;
  18.     import flash.system.LoaderContext;
  19.     import flash.system.Security;

forked from: Blazing Effect

 

google map テスト

cyocuncyocun

    • forked:0
    • favorite:0
    • lines : 26

CSS

  1. package {
  2.     import flash.display.Sprite;
  3.     import flash.events.Event;
  4.     import flash.geom.Point;
  5.     //import flash.filters.ColorMatrixFilter;
  6.     //import flash.geom.ColorTransform;
  7.     import com.google.maps.MapMouseEvent;
  8.     import com.google.maps.controls.MapTypeControl;
  9.     import com.google.maps.controls.PositionControl;
  10.     import com.google.maps.controls.ZoomControl;
  11.     import com.google.maps.LatLng;
  12.     import com.google.maps.Map;
  13.     import com.google.maps.MapEvent;
  14.     import com.google.maps.MapType;
  15.         
  16.     /**
  17.      * ...
  18.      * @author cyocun
  19.      */

google map テスト

 

google map API for FLASH @mxml (編集中)

cyocuncyocun

    • forked:3
    • favorite:0
    • lines : 59

CSS

  1.             myTimer.start();
  2.         }
  3.         private function timedFunction(eventArgs:TimerEvent):void {
  4.             //map.panBy(new Point(1000, 500));
  5.             map.panTo(new LatLng(p.x += Math.random() - 0.5, p.y += Math.random() - 0.5 ));
  6.         }
  7.           private function setFilter() : void{
  8.               var filter : ColorMatrixFilter = new ColorMatrixFilter();
  9.               var matrix:Array = new Array();
  10.               matrix = matrix.concat([0.3086, 0.694, 0.0820, 0, 0]); // red
  11.               matrix = matrix.concat([0.3086, 0.694, 0.0820, 0, 0]); // green
  12.               matrix = matrix.concat([0.3086, 0.694, 0.0820, 0, 0]); // blue
  13.               matrix = matrix.concat([0, 0, 0, 1, 0]); // alpha
  14.               filter.matrix = matrix;
  15.               setMapFilter( filter );
  16.            }
  17.           

google map API for FLASH @mxml (編集中)

 

判別分析法による閾値の自動計算 WebCam 版

AquiouxAquioux

    • forked:1
    • favorite:5
    • lines : 322

CSS

  1.             cloneBitmapData = value.clone();
  2.             value.fillRect(rect, 0xFF000000);
  3.             value.threshold(cloneBitmapData, rect, ZERO_POINT, ">", _threshold, 0xFFFFFFFF, 0x000000FF, false);
  4.             return value;
  5.         }
  6.     }
  7.     import flash.display.BitmapData;
  8.     import flash.filters.ColorMatrixFilter;
  9.     /**
  10.      * ColorMatrixFilter による BitmapData のグレイスケール化(NTSC 系加重平均による)
  11.      * 参考:Foundation ActionScript 3.0 Image Effects(P106)
  12.      *         http://www.amazon.co.jp/gp/product/1430218711?ie=UTF8&tag=laxcomplex-22
  13.      * @author YOSHIDA, Akio (Aquioux)
  14.      */
  15.     class EffectorGrayScale extends AbstractEffector {
  16.         // ColorMatrixFilter
  17.         private const GRAYSCALE_MATRIX:Array = [

判別分析法による閾値の自動計算 WebCam 版

 

flash on 2010-3-18

poplaryypoplaryy

    • forked:0
    • favorite:5
    • lines : 126

CSS

  1. package  
  2. {
  3.     import flash.display.Sprite;
  4.     import flash.events.Event;
  5.     import flash.display.Bitmap;
  6.     import flash.display.BitmapData;
  7.     import flash.events.MouseEvent;
  8.     import flash.filters.BlurFilter; 
  9.     import flash.filters.ColorMatrixFilter;
  10.     import flash.filters.GlowFilter;
  11.     import flash.geom.Matrix;
  12.     import flash.geom.Point;
  13.     
  14.     [SWF(width = "465", height = "465", backgroundColor = "0", fps = "30")]
  15.     public class Particles extends Sprite
  16.     { 
  17.         private var NUM:int = 300;
  18.         private var p:Particle = new Particle();
  19.         private var bd:BitmapData = new BitmapData(465, 465,true,0);

flash on 2010-3-18

 

被写体の移動方向推定

umhrumhr

    • forked:0
    • favorite:2
    • lines : 210

CSS

  1.                 }
  2.     }
  3. }
  4. import flash.display.Bitmap;
  5. import flash.display.BitmapData;
  6. import flash.display.Sprite;
  7. import flash.filters.BitmapFilter;
  8. import flash.filters.BlurFilter;
  9. import flash.filters.ColorMatrixFilter;
  10. import flash.filters.ConvolutionFilter;
  11. import flash.geom.ColorTransform;
  12. import flash.geom.Point;
  13. import flash.geom.Rectangle;
  14. import flash.media.Video;
  15. class BitmapProcess extends Sprite{
  16.     private var _bitmap0:Bitmap;
  17.     private var _bitmap1:Bitmap;

被写体の移動方向推定

 

色の変化している部分を抜き出す2

umhrumhr

    • forked:1
    • favorite:1
    • lines : 139

CSS

  1.                 }
  2.     }
  3. }
  4. import flash.display.Bitmap;
  5. import flash.display.BitmapData;
  6. import flash.display.Sprite;
  7. import flash.filters.BitmapFilter;
  8. import flash.filters.BlurFilter;
  9. import flash.filters.ColorMatrixFilter;
  10. import flash.filters.ConvolutionFilter;
  11. import flash.geom.ColorTransform;
  12. import flash.geom.Point;
  13. import flash.geom.Rectangle;
  14. import flash.media.Video;
  15. class BitmapProcess extends Sprite{
  16.     private var _bitmap0:Bitmap;
  17.     private var _bitmap1:Bitmap;

色の変化している部分を抜き出す2

 

彩度による二値化

AquiouxAquioux

    • forked:0
    • favorite:3
    • lines : 334

CSS

  1.     import frocessing.color.ColorHSV;
  2.     import frocessing.color.ColorRGB;
  3.     /**
  4.      * 彩度 による BitmapData のグレイスケール化
  5.      * @author YOSHIDA, Akio (Aquioux)
  6.      */
  7.      
  8.     class EffectorSaturation extends AbstractEffector {
  9.         // ColorMatrixFilter
  10.         private var hsv:ColorHSV = new ColorHSV();
  11.         private var rgb:ColorRGB = new ColorRGB();
  12.         
  13.         
  14.         /*
  15.          * グレイスケール実行
  16.          * @param    value    効果をかける BitmapData
  17.          */
  18.         override protected function effect(value:BitmapData):BitmapData {

彩度による二値化

 

屈折ドーナツ

nabenabe

    • forked:1
    • favorite:26
    • lines : 135

CSS

  1. package {
  2.     import flash.display.BlendMode;
  3.     import flash.display.Sprite;
  4.     import flash.events.Event;
  5.     import flash.events.MouseEvent;
  6.     import flash.filters.ColorMatrixFilter;
  7.     public class Main extends Sprite {
  8.         private var cursor_i:MyMask;
  9.         private var cursor_r:MyMask;
  10.         public function Main():void {
  11.             addEventListener(Event.ADDED_TO_STAGE, init);
  12.         }
  13.         private function init (e:Event):void {
  14.             removeEventListener(Event.ADDED_TO_STAGE, init);
  15.             var water_:Sprite = new MyWater(stage, 100);
  16.             water_.blendMode = BlendMode.SUBTRACT;
  17.             water_.y = 200;

屈折ドーナツ

 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • NEXT

ページの先頭へ戻る

wonderfl TOP

  • Codes
    page view ranking
    favorite ranking
    forked count ranking
  • Users
    page view ranking
    favorite ranking
    forked count ranking
  • Game
    make games
    play games
  • Q&A
    Questions
    about Flash /
    Actionscript3.0
  • Tags
    Flash /
    Actionscript3.0
    keywords
  • What is wonderfl
    help
    Q&A
    libraries
    wiki
    APIs
    developer's blog
    contact
  • Terms of Use
    Privacy Policy

site design © KAYAC Inc. All Rights Reserved.