forked from: 片対数グラフ
forked from 片対数グラフ (diff: 11)
ActionScript3 source code
/**
* Copyright dizgid ( http://wonderfl.net/user/dizgid )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/rNq3
*/
// forked from yd_niku's 片対数グラフ
package {
import flash.display.Sprite;
[SWF(backgroundColor=0x00)]
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
const WIDTH:int = 465;
const HEIGHT:int = 465;
var hlz:int = 0;
var base:Number = Math.log(220500);
graphics.lineStyle( 0, 0xff00 );
for( var j:int=1; j<10; j++ ) {
var p:Number = Math.log(Math.pow(10,0)*j)/ base;
var tx:Number = p*WIDTH;
graphics.moveTo( tx, 0 );
graphics.lineTo( tx, HEIGHT );
}
}
}
}