In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

バラ曲線2

http://www.ayu.ne.jp/user/fujisaki/graph1.htm
Get Adobe Flash player
by 12346 05 Jan 2011
/**
 * Copyright 12346 ( http://wonderfl.net/user/12346 )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/2tX8
 */

// forked from 12346's バラ曲線 その2?
//http://www.ayu.ne.jp/user/fujisaki/graph1.htm
package{public class g extends Sprite{
public var t:Number=0,R:Graphics=graphics,r:Number
public function g(){x=y=232;R.lineStyle(0),R.moveTo(f(0),0)
 addEventListener("enterFrame",function():void{
  r=f(t+=1/64);R.lineTo(r*Math.cos(t),r*Math.sin(t))
})}}import flash.display.*}
function f(t:Number):Number{return(



 57+128*Math.cos(2.5*t)-38*Math.cos(7.5*t)



)}