line: draw a line from a to b #6

Open
opened 2026-08-30 11:00:49 +02:00 by ShatteredMINT · 1 comment
Owner

Description

Draws a line between two points

ABI suggestion

r1 = colour
r2 = xA
r3 = yA
r4 = xB
r5 = yB

no result
## Description Draws a line between two points ## ABI suggestion ```asm r1 = colour r2 = xA r3 = yA r4 = xB r5 = yB no result ```
ShatteredMINT added the enhancement label 2026-08-30 11:00:49 +02:00
ShatteredMINT added this to the Graphics API project 2026-08-30 11:00:49 +02:00
ShatteredMINT moved this to accepted in Graphics API on 2026-08-30 11:01:37 +02:00
Contributor

Algorithm suggestion: Bresenham's line algorithm.
It allows drawing pixel-by-pixel of a straight line.
It's extension, the Midpoint circle algorithm can be used to draw circles and ellipses.

Algorithm suggestion: [Bresenham's line algorithm](https://en.wikipedia.org/wiki/Bresenham%27s_line_algorithm). It allows drawing pixel-by-pixel of a straight line. It's extension, the [Midpoint circle algorithm](https://en.wikipedia.org/wiki/Midpoint_circle_algorithm) can be used to draw circles and ellipses.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: TCShenanigans/symphony_stdlib#6