Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ drawSquare
Method
drawSquare
recipes/Python/577674_Bitmap_Maker/recipe-577674.py:220–221 ·
view source on GitHub ↗
( self, x, y, wid, fill=False )
Source
from the content-addressed store, hash-verified
218
self.drawLine( x, y+ht, x+wid, y+ht )
219
220
def
drawSquare( self, x, y, wid, fill=False ):
221
self.drawRect( x, y, wid, wid, fill )
222
223
def
bresLine(x,y,x2,y2):
224
""
"Bresenham line algorithm"
""
Callers
nothing calls this directly
Calls
1
drawRect
Method · 0.95
Tested by
no test coverage detected