I came across a really good article by Trevor McCauley on a number of new Graphics methods for Flash 10.
Thought I tried 2 of his examples here, drawPath & winding. Pretty impressive for finding overlapped area.
I came across a really good article by Trevor McCauley on a number of new Graphics methods for Flash 10.
Thought I tried 2 of his examples here, drawPath & winding. Pretty impressive for finding overlapped area.
There are already many dashline classes written in actionscript. But thought it will be fun to try it with pixelbender. I must admit that the product is not so-so. But here is it, PBDashline.
By default, Flash and Flex offers bilinear interpolation. A number of articles offer cubic spline interpolation to achieve better result for enlargement. The major draw back is performance. Here I am “experimenting” with cubic spline, pyramid and rect filters for 2X enlargement. The implementation is done in pixelbender for speed and simplicity. However, I sacrifice the flexibility of arbitrary enlargement size.
Reference: Digital Image Processing (second edition) by William K. Pratt pages 441 – 445.
Wow, awesome feature. Lesson, thanks to MNSWF and our very own Dustin of Easel Training. Example here will detect a USB jump drive plugging in and launch the default application when you click on the file.
Thought I would try applying HSV in pixelbender as well. The algorithm I am using maybe referenced from University of Haifa, Israel. Please consider my Flex app. demo and pixelbender source (pbk).
Thought I exercise on a pixelbender filter for adjusting brightness (L*), red<->green(a*), and yellow<->blue(b*) in CIE L*a*b* color space. I am generalizing the sRGB to Tristimulus (XYZ) formulation and assuming D50 light source.
PixelBender source (pbk), Flex App. demo
Reference(s):
1) Principles of Color Technology, 2nd edition by Billmeyer & Saltzman.
A few months ago a friend from FlashMN asked about finding a coordinate transform from one volume (3D space) to another. Well, here is one of the simplest method, solving for a 3×3 matrix (assuming linear, non-distorted transform on a plane). This is written in Mathematica 7 notebook. Reference: Measuring Color 2nd Edition by R. W. Hunt, pg. 204-5.
Happy Halloween! Topic for FlashMN this month was BobbleHead. Here is the result with a few refinement after the meeting. Mouse out, click or drag to repeat the bobble.
Bang Bang!
Color pixel coordinates are three dimensional and therefore best visualized and manipulated in a volume. The first time I experienced this was through a statistic analysis tool, JMP (SAS software) in my color theory class at Rochester Institute of Technology (RIT). Later, I have used similar color visualization and manipulation tools as ColorBlind and Candela by Bruce Lindbloom.
This volume histogram was first written in C# and later migrated to Flex. Added this evening was onEnterFrame() for the rotation control so as to have “spin” animation. This tool was developed for visualization and count only. Hope to have manipulation capability in the next version.
Download Flex and C# demo source from GoogleCode.
Learn more about the C# demo here.
Powered by WordPress