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
That's an interesting observation. Also, calling this a point, which strictly speaking has no length, area, or volume, is a bit weird. But I can see the practical utility of it. I'll need to think about this.
Apologies for the late reply.
Abusing forum power since 1986.
Offline
Pages: 1