outputBitmapData.lock();
for(y = 0; y < STAGE_HEIGHT; ++y)
{
for(x = 0; x < STAGE_WIDTH; ++x)
{
r = (t*100 + 255 * x / STAGE_WIDTH)%255;
g = 180;
b = 180;
outputBitmapData.setPixel(x, y, (r<<16) + (g<<8) + b);
}
}
outputBitmapData.unlock();
转载于:https://www.cnblogs.com/vilyLei/articles/1446210.html