You are not logged in.
Pages: 1
should be self-explanatory, point size expands from center
/// @func draw_point_size(x,y,size)
///
/// @desc Draws a point of the specified size
///
/// @arg {real} x,y position
/// @arg {real} width width of point in pixels, real
///
/// GMLscripts.com/license
{
var _x, _y, size
_x = argument0;
_y = argument1;
size = argument2;
draw_rectangle(_x-(size/2),_y-(size/2),_x+(size/2),_y+(size/2),false);
return 0;
}
Offline
Issue with this is that depending of GPU (Intel/GeForce/AMD) rectangle might be offset by 1px, and when you use odd number, you have no idea on which pixel it will be rounded in this case. So, the result might be even ~2px wrong.
Offline
Pages: 1