MCPcopy Create free account
hub / github.com/endbasic/endbasic / peek_pixel

Method peek_pixel

std/src/console/drawing.rs:502–504  ·  view source on GitHub ↗
(&self, xy: PixelsXY)

Source from the content-addressed store, hash-verified

500 }
501
502 fn peek_pixel(&self, xy: PixelsXY) -> io::Result<Option<u8>> {
503 Ok(self.pixels.get(&xy).copied().unwrap_or(None))
504 }
505
506 fn read_pixels(&mut self, _xy: PixelsXY, _size: SizeInPixels) -> io::Result<Self::ID> {
507 unimplemented!();

Callers 1

bucket_fillFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected