From 1502001edf8124d6fb3513d302195b5e5c2b0d79 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Fri, 18 Oct 2013 19:18:05 +0000 Subject: fix fill --- (limited to 'TurtleArt/tacollaboration.py') diff --git a/TurtleArt/tacollaboration.py b/TurtleArt/tacollaboration.py index 4f4406b..7021e9a 100644 --- a/TurtleArt/tacollaboration.py +++ b/TurtleArt/tacollaboration.py @@ -1,4 +1,4 @@ -#Copyright (c) 2011-12 Walter Bender +#Copyright (c) 2011-13 Walter Bender #Copyright (c) 2011 Collabora Ltd. #Permission is hereby granted, free of charge, to any person obtaining a copy @@ -401,9 +401,16 @@ class Collaboration(): [nick, poly_points] = data_from_string(payload) shared_poly_points = [] for i in range(len(poly_points)): - shared_poly_points.append( - (self._tw.turtles.turtle_to_screen_coordinates - (poly_points[i][0], poly_points[i][1]))) + if poly_points[i][0] == 'move': + shared_poly_points.append( + (self._tw.turtles.turtle_to_screen_coordinates + (poly_points[i][1], poly_points[i][2]))) + elif poly_points[i][0] in ['rarc', 'larc']: + shared_poly_points.append( + (self._tw.turtles.turtle_to_screen_coordinates + (poly_points[i][1], poly_points[i][2]), + poly_points[i][3], poly_points[i][4], + poly_points[i][5])) if nick != self._tw.nick: self._tw.turtles.set_turtle(nick) self._tw.turtles.get_active_turtle().set_poly_points( -- cgit v0.9.1