Together with the students, we are creating an application that will draw interesting graphics (for example, sin x and others) using points on the canvas. But we ran into a problem - there is no function to draw a point of the selected color with coordinates x and y. Instead of a point, you can use a circle with a radius of 1. Are there other options?

Isn’t a circle with radius 1 a point?

[quote=“catsariskypbi, post:2, topic:1216399”]

Isn’t a circle with radius 1 a point?

[/quote]

a circle with a radius of 1 is a point of 4 pixels minimum! but how to make a point from 1 pixel?

Yeah, you’re totally right. Sorry. I was thinking diameter. Math fail.

can someone else give advice !!! ?? I really hope for you!

another option is to draw a line of 2 pixels instead of a point. left - 2 pixels line, right - circle with radius 1