From b2ea1966ee0d928bc27512daa6ea12a62a4d6c94 Mon Sep 17 00:00:00 2001 From: Adeel Kazmi Date: Tue, 25 Aug 2020 20:18:32 +0100 Subject: [PATCH] (Animated Shapes) Restore yellow colour for top shape Change-Id: Ifefe4a02203878d1011ee5a5948615e68ae15ba6 --- examples/animated-shapes/animated-shapes-example.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/animated-shapes/animated-shapes-example.cpp b/examples/animated-shapes/animated-shapes-example.cpp index 37349f2..d074ad3 100644 --- a/examples/animated-shapes/animated-shapes-example.cpp +++ b/examples/animated-shapes/animated-shapes-example.cpp @@ -210,7 +210,7 @@ public: actor[Actor::Property::SIZE ] = Vector2( 400.0f, 400.0f ); actor[Actor::Property::POSITION ] = center; actor[Actor::Property::ANCHOR_POINT] = AnchorPoint::CENTER; - actor[Actor::Property::COLOR] = Color::WHITE; + actor[Actor::Property::COLOR] = Color::YELLOW; actor.AddRenderer( renderer ); Window window = mApplication.GetWindow(); @@ -259,7 +259,7 @@ public: shader["uPosition[11]"] = Vector3( -radius, -radius, 0.0f ); shader["uPosition[12]"] = Vector3( -radius, -radius, 0.0f ); - shader["uPosition[13]"] = Vector3( radius, -radius, 0.0f ); + shader["uPosition[13]"] = Vector3( radius, -radius, 0.0f ); shader["uPosition[14]"] = Vector3( radius, radius, 0.0f ); shader["uPosition[15]"] = Vector3( -radius, radius, 0.0f ); @@ -403,7 +403,7 @@ public: actor[Actor::Property::SIZE] = Vector2( 400.0f, 400.0f ); actor[Actor::Property::POSITION] = center; actor[Actor::Property::ANCHOR_POINT] = AnchorPoint::CENTER; - actor[Actor::Property::COLOR] = Vector4(1.0f,0.0f,0.0f,1.0f); + actor[Actor::Property::COLOR] = Color::RED; actor.AddRenderer( renderer ); Window window = mApplication.GetWindow(); -- 2.7.4