MCPcopy Index your code
hub / github.com/faiface/pixel / Color

Method Color

pixelgl/window.go:481–483  ·  view source on GitHub ↗

Color returns the color of the pixel over the given position inside the Window.

(at pixel.Vec)

Source from the content-addressed store, hash-verified

479
480// Color returns the color of the pixel over the given position inside the Window.
481func (w *Window) Color(at pixel.Vec) pixel.RGBA {
482 return w.canvas.Color(at)
483}
484
485// Canvas returns the window's underlying Canvas
486func (w *Window) Canvas() *Canvas {

Callers

nothing calls this directly

Calls 1

ColorMethod · 0.65

Tested by

no test coverage detected