Tile by tile lighting how would i do this

Here is my code

private Color getLightBrightness(List<MasterTile> lights,Color current, MasterTile tile){
		Color brightNess = current;
		int n = 1 - 0 + 1;
		
		Vector2 tileCoords = new Vector2(tile.getX()/MasterTile.TILE_WIDTH,tile.getY()/MasterTile.TILE_HEIGHT);
		for(int i = 0;i < lights.size();i++){
			MasterTile t = lights.get(i);
			float distance =  tileCoords.dst(t.getX()/MasterTile.TILE_WIDTH, t.getY()/MasterTile.TILE_HEIGHT);
			distance %= n;
			System.out.println(distance);
			//Utils.mixColours(current, LIGHT, distance);
		}
		
		
		return brightNess;
	}

Here is what i am trying to do