ぐるぐるしたら、部屋が暖まる法則

Flower – wonderfl build flash online
GraphicsPathで描いた花びら何枚も重ねて、ColorMatrixFilterを使って色をぐるぐる・・・しようと思ったら、や [...]…

Posted at Nov 3rd | 4 comments | Filed Under: Web read on

二次ベジェから三次ベジェへの変換

二次ベジェのアンカーからハンドルまでを2/3した点をハンドルにすると三次ベジェになる。三次ベジェを二次ベジェに変換するのは、解析的には解…

Posted at Oct 29th | no comments | Filed Under: Web read on

GraphicsPathで円・正多角形・星型正多角形

半径から作れるGraphicsPathシリーズで円・正多角形・星型正多角形を描いた。
正確には星型正多角形の外枠?なんていえばいんだろう・・・
定義は…

Posted at Oct 29th | no comments | Filed Under: Web read on

PolynomialGenerator

QuadraticBezierSegment/CubicBezierSegment の getTimeForX()/getTimeForY()/getTimes() メソッドで使ってる Polynomial.solv [...]…

Posted at Oct 28th | no comments | Filed Under: Web read on

GraphicsPathでdrawEllipse()する

GraphicsPathでdrawRoundRect()する前に、こっちが先だったかも。GraphicsPathでGraphics.drawEllipse()と同様のことができるとどっかで使えそう。QuadraticBe [...]…

Posted at Oct 28th | no comments | Filed Under: Web read on

GraphicsPathでdrawRoundRect()する

前々回のエントリで、楕円をベジェセグメントで描いたのの応用としてGraphicsPathでGraphics.drawRoundRect()みたいなパスを描いてみた。ついでにWonderflのア…

Posted at Oct 28th | no comments | Filed Under: Web read on

ベジェセグメントを分割

ベジェ曲線上をクリックして分割する。クリックした座標に対応する媒介変数をISegment.getTime()で取得して、結果の媒介変数からISegment.split()でベジ…

Posted at Oct 27th | no comments | Filed Under: Web read on

NthBezierSegmentクラスをSparkProjectにコミット

円をベジェ曲線で表すのはあくまでも近似なんだってことを念頭に、三次ベジェの場合は4セグメントで円に見えるけど、二次ベジェの場合は4セグ…

Posted at Oct 27th | no comments | Filed Under: Web read on

三次ベジェで円や楕円

三次ベジェで円や楕円とかも描画できるとよさそう。
前回と同じく、青いのがGraphics.drawCircle()とGraphics.drawEllipse()で描画したライン。
白いのが自…

Posted at Oct 23rd | no comments | Filed Under: Web read on

二次ベジェとか三次ベジェとか

fl.motion.BezierSegmentを描画に使おうとするとメソッドが色々足りない。例えば「三次ベジェはあるけど二次ベジェはない」とか「getYForX()はあるのにget…

Posted at Oct 23rd | no comments | Filed Under: Web read on

Get Adobe Flash playerPlugin by wpburn.com wordpress themes