From b964978394991a4c4f6bebf2d309e1f598b1e641 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asr=C4=B1n=20Do=C4=9Fan?= Date: Sat, 9 May 2020 12:35:23 +0300 Subject: [PATCH] Line Color --- InverseKinematics/TestWindow.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InverseKinematics/TestWindow.hpp b/InverseKinematics/TestWindow.hpp index 2d0ae41..d6ead08 100644 --- a/InverseKinematics/TestWindow.hpp +++ b/InverseKinematics/TestWindow.hpp @@ -25,7 +25,7 @@ void TestWindow::Update() sf::Vertex *array = new sf::Vertex[this -> pointCount]; for (i = 0; i < this -> pointCount; i++) - *(array + i) = sf::Vertex(sf::Vector2f((points + i) -> x, (points + i) -> y), sf::Color::White); + *(array + i) = sf::Vertex(sf::Vector2f((points + i) -> x, (points + i) -> y), sf::Color(255, 255/(i+1), 255/(i+1))); window.clear(sf::Color::Black); window.draw(array, this -> pointCount, sf::PrimitiveType::LinesStrip);