How can i draw a line equations with two point known axis and ordinate

Equation format is Ax+By=C. Let say our equation is x+3y=3. Axis is 3 and ordinate is 1 and slope is -1/3. How can i draw this line in go? Which library can i use, anyone help me?


are you looking for a GUI library or library that generates images?

Hi @bilalth,

For non-interactive graphics, gonum/plot comes to mind.

For interactive drawing, maybe try a game library like ebiten.

Hi,i’m looking library that generates images.

Hi, i just looked and I think type plot will work for me thank you.

1 Like