MCPcopy Index your code
hub / github.com/csev/py4e / setPixel

Method setPixel

code/graphics/graphics.py:944–950  ·  view source on GitHub ↗

Sets pixel (x,y) to the color given by RGB values r, g, and b. r,g,b should be in range(256)

(self, x, y, (r,g,b))

Source from the content-addressed store, hash-verified

942 return map(int, value.split())
943
944 def setPixel(self, x, y, (r,g,b)):
945 """Sets pixel (x,y) to the color given by RGB values r, g, and b.
946 r,g,b should be in range(256)
947
948 """
949
950 _tkExec(self.image.put, "{%s}"%color_rgb(r,g,b), (x, y))
951
952 def clone(self):
953 """Returns a copy of this Pixmap"""

Callers

nothing calls this directly

Calls 2

_tkExecFunction · 0.85
color_rgbFunction · 0.85

Tested by

no test coverage detected