def point(self, x, y, color=None):
if x < <NUM_LIT:0> or y < <NUM_LIT:0> or x > self.width - <NUM_LIT:1> or y > self.height - <NUM_LIT:1>:<EOL><INDENT>return<EOL><DEDENT>if color is None:<EOL><INDENT>color = self.color<EOL><DEDENT>o = self._offset(x, y)<EOL>self.canvas[o:o + <NUM_LIT:3>] = blend(self.canvas[o:o + <NUM_LIT:3>], bytearray(color))<EOL>
Set a pixel