zigar.image.WebImage(acc, format).sampleLinear(self, T, coord) - chung-leong/zigar GitHub Wiki

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)