Right now I have a function that returns objects in a for loop from a different line, but it's only returning the first expression through the loop.
def display(artFileName):
while data != '':
data = getPixels(artFileName)
print (data)
def getPixels(artFileName):
for line in fileLine[1:]:
return (pointX, pointY, red, green, blue)
Right now it's only printing the first line that gets run through the loop. How do I get the def display() to print all of the lines that get run through getPixels?
(When I print the loop in getPixels it displays the full list.)