def load_palette_from_pal_file(filename):
	"""
	Load palette from PAL file and return list of colors.

	:param str filename: pal file
	:return: list of colors
	:rtype: list([int, int, int])
	"""
	with open(filename, "r") as pal:
		lines = pal.readlines()[2:]

		n_colors = int(lines[0])

		colors = [line.split(" ") for line in lines[1:]]
		colors = [[int(col[i]) for i in range(3)] for col in colors]

		assert len(colors) == n_colors

		return colors