EnTerr
10 years agoRoku Guru
What does DrawPoint(..., size as Float) do?
So there is a new function in ifDraw2D town:
The explanation line pretty much repeats what i know from the method signature (not helpful). Roku*, can you please expand on:
(*) obviously, a "point" won't be a mathematical, 0-dimensional object (think infinitely small) for it will be invisible - but rather will map to a pixel or a few pixels.
DrawPoint(x as Integer, y as Integer, size as Float, rgba as Integer) as Void
Draws a point at (x,y) with the given size and RGBA color.
The explanation line pretty much repeats what i know from the method signature (not helpful). Roku*, can you please expand on:
- Will the point* be of square or circular nature, given a `size`?
- If "big" points are squares, how's this different from using DrawRect()?
- What is `size` - is it radius or square side?
- Why is `size` a float when (x,y) are int (i suspect there is a practical reason)
- Is (x,y) the center, upper-left or lower-left corner of the "point"?
(*) obviously, a "point" won't be a mathematical, 0-dimensional object (think infinitely small) for it will be invisible - but rather will map to a pixel or a few pixels.