yuntian-deng commited on
Commit
21afa57
·
1 Parent(s): d358f29

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -97,9 +97,9 @@ def draw_trace(image: np.ndarray, previous_actions: List[Tuple[str, List[int]]],
97
  #draw.ellipse([x-2, y-2, x+2, y+2], fill=color)
98
 
99
 
100
- if prev_x is not None:
101
- #prev_x, prev_y = previous_actions[i-1][1]
102
- draw.line([prev_x, prev_y, x, y], fill=color, width=1)
103
  prev_x, prev_y = x, y
104
  draw.ellipse([x_scaled*4-2, y_scaled*4-2, x_scaled*4+2, y_scaled*4+2], fill=(0, 255, 0))
105
  #pil_image = pil_image.convert("RGB")
 
97
  #draw.ellipse([x-2, y-2, x+2, y+2], fill=color)
98
 
99
 
100
+ #if prev_x is not None:
101
+ # #prev_x, prev_y = previous_actions[i-1][1]
102
+ # draw.line([prev_x, prev_y, x, y], fill=color, width=1)
103
  prev_x, prev_y = x, y
104
  draw.ellipse([x_scaled*4-2, y_scaled*4-2, x_scaled*4+2, y_scaled*4+2], fill=(0, 255, 0))
105
  #pil_image = pil_image.convert("RGB")