All pastes #433504 Raw Edit

Something

public text v1 · immutable
·published 2007-04-10 20:59 UTC
rendered paste body
	short[][][] island = loadBitmap("bitmaps/PestWalls.bmp");

	@Override
	public void script() throws InterruptedException {
		for (short[][] i : island)
			for (short[] j : i)
				if (j[0] == 0 && j[1] == 0 && j[2] == 0) 
					j[0] = BitMapInfo.BITMAP_ANY;
		double startAngle = -Math.PI/5;
		double endAngle =  Math.PI/5;
		double angleIntervalSize = Math.PI / 20;
		short[][][] colormap = getColorArray2d();
		for (; startAngle < endAngle; startAngle += angleIntervalSize) {
			log(startAngle);
			paintColorMap(RotateBitmap(island, startAngle), 0, 0, 4000);
			XY[] x = findXYs(colormap, 1, RotateBitmap(island, startAngle),
					Areas.MINI_MAP, .988, 0, 0, 0);
			if (x.length > 0) {
				log(x[0]+"sedf "+x.length);
				mouseMove(x[0]);
				paintColorMap(RotateBitmap(island, startAngle), x[0].x, x[0].y, 4000);
				sleep(4000);
			}
		}