KSM edits to RA8875

Dependents:   Liz_Test_Code

Revision:
144:ba002c4b21b3
Parent:
143:e872d65a710d
Child:
147:3494792458d9
--- a/RA8875.h	Sun Mar 19 22:11:04 2017 +0000
+++ b/RA8875.h	Sat May 06 20:14:48 2017 +0000
@@ -1871,6 +1871,28 @@
     RetCode_t line(loc_t x1, loc_t y1, loc_t x2, loc_t y2);
 
 
+    /// Draw a thick line
+    ///
+    /// Draw a line of a specified thickness and color.
+    ///
+    /// In order to draw a thick line, this draws filled circles using 
+    /// bresenham's algorithm to move the center point of the circle.
+    /// As a result, this is much slower than drawing a 1-pixel line which
+    /// uses the hardware line drawing algorithm.
+    ///
+    /// Drawing multiple parallel lines to create a thick line is faster,
+    /// however the line drawing was not guaranteed to fill every pixel
+    /// on the diagonals.
+    ///
+    /// @param[in] p1 is the point to start the line.
+    /// @param[in] p2 is the point to end the line.
+    /// @param[in] thickness is the line thickness.
+    /// @param[in] color defines the foreground color.
+    /// @returns success/failure code. See @ref RetCode_t.
+    /// 
+    RetCode_t ThickLine(point_t p1, point_t p2, dim_t thickness, color_t color);
+
+
     /// Draw a rectangle in the specified color
     ///
     /// @note As a side effect, this changes the current