I have a this bonus problem for class that I don't have a clue where to start. We have been using the cImage module and the question is: Write a function called DrawTriangle that takes parameters img, x1, y1, x2, y2, x3, y3 and col, where col is a Pixel object, that draws a filled triangle with vertices (x1,y1), (x2,y2) and (x3, y3) with color onto image object img. I understand its for school so if I don't get help it's fine it's only a bonus question. It would be nice to see how it is done though!
kenmeck03 0 Newbie Poster
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.