Thanks for sharing this @TheCedarPrince . Yes, it’s me ![]()
@Reza-Reza Roughly speaking, if you are looking for an algorithm to draw a line 2D grid, then you can find it here: Bresenham's line algorithm - Wikipedia (see last code section). You can implement this in any programming language for a 2D grid, which is like an abstraction of your digital screen/monitor. If you want a Julia implementation of that algorithm, you can find it at SimpleDraw.jl/line.jl at 8ecdf9bde31200b3a559a1ee4052c59d7833c012 · Sid-Bhatia-0/SimpleDraw.jl · GitHub. Now to actually transfer data from this 2D array to your screen and get colors displayed so that a line is visible on your monitor, you’ll probably need some functions that give you that ability. Such functions are present in windowing libraries. One example is glfw (https://www.glfw.org/), which is written in C and is also cross-platform, so that you don’t have to write completely different code to display your 2D array on different operating systems.