-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Lines at any angle #271
Comments
This wouldn't work for any vertical or horizontal line, where the program should just use the straight line tool in the background, but for any points Now on this, each point corresponds with the bottom left corner of an AsciiFlow cell, however it would need to be stretched to fit properly with the height of the font. At each interval of 0.5 from the start point, e.g. if drawn from We'd now have the coordinates of the middle points on each point on the line, and you'd then do something to truncate the whole number part off, to just the decimal, so 4.3 => .3. Then you would lookup that .3 value in a table taking the closest value, e.g. something that maps like
This also doesn't take into account the direction of the line could give us a better result 🤔 I assume most people think this two, but I wanted to document my opinion. |
I don't know why I mentioned the triangle, I was thinking trig stuff but I realized that's not needed. We could probably factor in information about the slope as well |
I would like to be able to draw a line at any angle based on two points. The tool should make a best guess as to how to render that line. There are are ways to make lines at other angles besides 0, 90 and 45 degrees. E.g.
This line drawing method in ASCII is never going to be prefect, but I think that there are plenty of ways to make this somewhat useful.
I don't think that this method needs to interact with other lines. It would be nice just to be able to draw it. The way that I would use it is to start one point, and then move the line around until I get something that looks good enough.
A fancier version of this would allow free line drawing - but rather than only drawing a single character as is currently supported - it would try to figure out the best set of character to represent the curve of the line being drawn.
The text was updated successfully, but these errors were encountered: