点を打ってみただけ
/**
* Copyright esukei ( http://wonderfl.net/user/esukei )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/qPTM
*/
package {
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
public class FlashTest extends Sprite {
private var bmp:Bitmap;
private var bmpData:BitmapData;
private var px:Number;
private var py:Number;
private var pz:Number;
public function FlashTest() {
// write as3 code here..
bmpData = new BitmapData(465,465);
bmp = new Bitmap(bmpData);
addChild(bmp);
for(px=0;px<10;px++)
{
for(py=0;py<10;py++)
{
for(pz=0;pz<10;pz++)
{
bmpData.setPixel((px+(5-px)*pz/10)*40,(py+(5-py)*pz/10)*40, 255 * pz / 10 << 16 | 255 * pz / 10 << 8 | 255 * pz / 10);
}
}
}
}
}
}