From a755e21a2ebb5c75a7201b0cc59935f5786d943e Mon Sep 17 00:00:00 2001 From: Peter Badida Date: Sat, 13 May 2017 00:37:38 +0200 Subject: [PATCH] Fix shapecollisions example for py2 --- examples/miscellaneous/shapecollisions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/miscellaneous/shapecollisions.py b/examples/miscellaneous/shapecollisions.py index dc112117f..928dc4d5f 100644 --- a/examples/miscellaneous/shapecollisions.py +++ b/examples/miscellaneous/shapecollisions.py @@ -219,7 +219,7 @@ class RegularShape(BaseShape): # draw Mesh shape from generated poly points with self.canvas: - Color(rgba=(*color, 0.6)) + Color(rgba=(color[0], color[1], color[2], 0.6)) self.shape = Mesh( pos=self.pos, vertices=vertices, @@ -301,7 +301,7 @@ class MeshShape(BaseShape): # draw Mesh shape from generated poly points with self.canvas: - Color(rgba=(*color, 0.6)) + Color(rgba=(color[0], color[1], color[2], 0.6)) self.shape = Mesh( pos=self.pos, vertices=vertices,