Skip to content

zigar.image.WebImage(acc, format).getPixel(self, T, x, y)

Chung Leong edited this page Jul 28, 2026 · 1 revision

JavaScript | PHP


Return a pixel of type T at the given location.

T must be a floating point vector. Its length indicates the desired number of channels.

Arguments:

  • self: @This()
  • T: @Vector(4|3|2|1, f16|f32|f64)
  • x: usize
  • y: usize

Return value:

  • T

WebImage(acc, format) | setPixel(self, T, x, y, pixel)

Clone this wiki locally