# Cool BMP images!

**URL:** <https://forum.kirupa.com/t/cool-bmp-images/180044>\
**Category:** open source\
**Created:** [February 24, 2006, 11:17pm UTC](https://forum.kirupa.com/t/cool-bmp-images/180044 "2006-02-24T23:17:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pattt](https://avatars.discourse-cdn.com/v4/letter/p/f1d935/32.png) [@Pattt](https://forum.kirupa.com/u/Pattt)\
**Post date:** [February 24, 2006, 11:17pm UTC](https://forum.kirupa.com/t/cool-bmp-images/180044/1 "2006-02-24T23:17:01Z")

</div>

Hi, check this out:

```auto
as = 10; // change to whatever you want!
// cool: 10000 100 100000000 1234567  
var color:Array = new Array(0xFF0000, 0x000000);
import flash.display.BitmapData;
var bmp:BitmapData = new BitmapData(200, 200, false, color[0]);
this.attachBitmap(bmp, 1);
var y:Number = Number(0);
onEnterFrame = function () {
 for (i=0; i<200; i++) {
  bmp.setPixel(i, y, (y*i)*as);
 }
 if (y<bmp.height) {
  y++;
 }
};

```

```auto
var color:Array = new Array(0xFF0000, 0x000000);
import flash.display.BitmapData;
var bmp:BitmapData = new BitmapData(200, 200, false, color[0]);
this.attachBitmap(bmp, 1);
var y:Number = Number(0);
onEnterFrame = function () {
 for (i=0; i<200; i++) {
  bmp.setPixel(i, y,y*y+i);
 }
 if (y<bmp.height) {
  y++;
 }
};

```

```auto
var color:Array = new Array(0xFF0000, 0x000000);
import flash.display.BitmapData;
var bmp:BitmapData = new BitmapData(200, 200, false, color[0]);
this.attachBitmap(bmp, 1);
var y:Number = Number(0);
onEnterFrame = function () {
 for (i=0; i<200; i++) {
  bmp.setPixel(i, y, (y*y*y*y*y*y)/(i*i*i));
 }
 if (y<bmp.height) {
  y++;
 }
};

```

😃
