var m_rect = new Rectangle(0, 0, M_SIZE, M_SIZE);
mosaic.onEnterFrame = function() {
var i, j;
bmpData.draw(BASE, m);
for (i=rect.y; i<rect.h; i += M_SIZE) {
for (j=rect.x; j<rect.w; j += M_SIZE) {
m_rect.x = j;
m_rect.y = i;
var colorNum = bmpData.getPixel(j+M_SIZE_HALF, i+M_SIZE_HALF);
bmpData.fillRect(m_rect, colorNum);
}
}
};
こんな感じ。。。
起点をかえるところではまっちゃった。
Matrixって日本語にやくすの難しいのね。。。。
つづく。
PR