Bitmap/Python: Difference between revisions
Content added Content deleted
m (moved Basic bitmap storage/Python to Bitmap/Python) |
(→Alternative version: since the default background is white, it makes sense to make the default paint color black (this is also required by Bitmap/Bresenham's_line_algorithm#Python)) |
||
Line 104: | Line 104: | ||
print('\n'.join(reversed(txt))) |
print('\n'.join(reversed(txt))) |
||
def set(self, x, y, colour): |
def set(self, x, y, colour=black): |
||
assert type(colour) == Colour |
assert type(colour) == Colour |
||
self.map[y][x]=colour |
self.map[y][x]=colour |