Pixel-Composer/scripts/fd_rectangle_draw/fd_rectangle_draw.gml

13 lines
818 B
Plaintext
Raw Normal View History

2023-02-14 02:48:33 +01:00
/// fd_rectangle_draw(instance id, x, y, xscale, yscale, color, alpha, use interpolation)
function fd_rectangle_draw(domain, _x, _y, xscale, yscale, color, alpha, interpolate) {
// Draws the fluid dynamics rectangle.
// instance id: The instance id of the fluid dynamics rectangle.
// x, y: The pixel position to draw at.
// xscale, yscale: The scale to draw at.
2023-09-09 13:52:16 +02:00
// color: The image blending color, the same as color in draw_surface_ext_safe.
// alpha: The alpha to draw at, the same as alpha in draw_surface_ext_safe.
2023-02-14 02:48:33 +01:00
// use interpolation: Set this to true if you want linear interpolation to be enabled, and false if you want nearest neighbor to be used instead.
fd_rectangle_draw_part(domain, 0, 0, domain.sf_material_width, domain.sf_material_height, _x, _y, xscale, yscale, color, alpha, interpolate);
}