Data commit

This commit is contained in:
Ingy döt Net 2023-07-01 11:58:00 -04:00
parent 7387c8f97b
commit cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions

View file

@ -0,0 +1,29 @@
package {
import flash.display.Sprite;
import flash.events.Event;
public class ColourBars extends Sprite {
public function ColourBars():void {
if (stage) init();
else addEventListener(Event.ADDED_TO_STAGE, init);
}
private function init(e:Event = null):void {
var colours:Array = [ 0x000000, 0xFF0000, 0x00FF00, 0x0000FF, 0xFF00FF, 0x00FFFF, 0xFFFF00, 0xFFFFFF ];
var w:Number = stage.stageWidth / 8, h:Number = stage.stageHeight;
var x:Number = 0, i:uint, c:uint;
for ( i = 0; i < 8; i++ ) {
c = colours[i];
graphics.beginFill(c);
graphics.drawRect(w * i, 0, w, h);
}
}
}
}