mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 23:17:25 +01:00
12 lines
818 B
Text
12 lines
818 B
Text
/// 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.
|
|
// 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.
|
|
// 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);
|
|
}
|