@@ -304,10 +304,11 @@ def rgba(self) -> NDArray[Any]:
304304
305305 Example:
306306 >>> con = tcod.console.Console(10, 2)
307+ >>> WHITE, BLACK = (255, 255, 255), (0, 0, 0)
307308 >>> con.rgba[0, 0] = (
308309 ... ord("X"),
309- ... (*tcod.white , 255),
310- ... (*tcod.black , 255),
310+ ... (*WHITE , 255),
311+ ... (*BLACK , 255),
311312 ... )
312313 >>> con.rgba[0, 0]
313314 (88, [255, 255, 255, 255], [ 0, 0, 0, 255])
@@ -328,10 +329,11 @@ def rgb(self) -> NDArray[Any]:
328329
329330 Example:
330331 >>> con = tcod.console.Console(10, 2)
331- >>> con.rgb[0, 0] = ord("@"), tcod.yellow, tcod.black
332+ >>> BLUE, YELLOW, BLACK = (0, 0, 255), (255, 255, 0), (0, 0, 0)
333+ >>> con.rgb[0, 0] = ord("@"), YELLOW, BLACK
332334 >>> con.rgb[0, 0]
333335 (64, [255, 255, 0], [0, 0, 0])
334- >>> con.rgb["bg"] = tcod.blue
336+ >>> con.rgb["bg"] = BLUE
335337 >>> con.rgb[0, 0]
336338 (64, [255, 255, 0], [ 0, 0, 255])
337339
@@ -916,7 +918,7 @@ def __repr__(self) -> str:
916918 self .width ,
917919 self .height ,
918920 self ._order ,
919- self .tiles ,
921+ self .rgba ,
920922 )
921923
922924 def __str__ (self ) -> str :
0 commit comments