how to change line color?

I use ‘vtkMRMLMarkupsLineNode’ function to define five lines,but how to change these lines’s color?
use python complete this job .

slicer.util.loadMarkupsFiducialList(“D:\m.fcsv”)
import numpy as np

def file2array(path, delimiter=’ '):
path = ‘D:\F.txt’
fp = open(path, ‘r’, encoding=‘utf-8’)
string = fp.read()
fp.close()
row_list = string.splitlines()
data_list = [[float(i) for i in row.strip().split(delimiter)] for row in row_list]
return np.array(data_list)

xa = file2array(‘./data.txt’)
n=0
while n<=len(xa):
print(xa[n:n+2])
curveNode = slicer.mrmlScene.AddNewNodeByClass(“vtkMRMLMarkupsLineNode”)
slicer.util.updateMarkupsControlPointsFromArray(curveNode, xa[n:n+2])
n+=2
if n==len(xa):
break