You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.html
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -2516,8 +2516,8 @@
2516
2516
</code></pre></div>
2517
2517
2518
2518
2519
-
<pre><codeclass="python language-python hljs"><bool> = <Rect>.collidepoint((x, y)) <spanclass="hljs-comment"># Tests if point is inside the rectangle.</span>
2520
-
<bool> = <Rect>.colliderect(<Rect>) <spanclass="hljs-comment"># Tests if the two rectangles overlap.</span>
2519
+
<pre><codeclass="python language-python hljs"><bool> = <Rect>.collidepoint((x, y)) <spanclass="hljs-comment"># Checks if rectangle contains a point.</span>
2520
+
<bool> = <Rect>.colliderect(<Rect>) <spanclass="hljs-comment"># Checks if two rectangles overlap.</span>
2521
2521
<int> = <Rect>.collidelist(<list_of_Rect>) <spanclass="hljs-comment"># Returns index of first colliding Rect or -1.</span>
2522
2522
<list> = <Rect>.collidelistall(<list_of_Rect>) <spanclass="hljs-comment"># Returns indexes of all colliding Rects.</span>
0 commit comments