Skip to content

zigar.image.WebImage(acc, format).sampleLinear(self, T, coord)

Chung Leong edited this page Jul 28, 2026 · 2 revisions

JavaScript | PHP


Sample the image at the given coordination using the bilinear method.

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)
  • coord: @Vector(2, f16|f32|f64)

Return value:

  • T

WebImage(acc, format) | sampleLinear(self, T, coord)

Clone this wiki locally