MCPcopy Create free account
hub / github.com/BruceDevices/firmware / drawWideLine

Method drawWideLine

include/VectorDisplay.h:982–986  ·  view source on GitHub ↗

Draw an anti-aliased wide line from ax,ay to bx,by width wd with radiused ends (radius is wd/2) If bg_color is not included the background pixel colour will be read from TFT or sprite

Source from the content-addressed store, hash-verified

980 // Draw an anti-aliased wide line from ax,ay to bx,by width wd with radiused ends (radius is wd/2)
981 // If bg_color is not included the background pixel colour will be read from TFT or sprite
982 void drawWideLine(
983 float ax, float ay, float bx, float by, float wd, uint32_t fg_color, uint32_t bg_color = 0x00FFFFFF
984 ) {
985 drawRect(ax, ay, wd, abs(ay - by), fg_color);
986 }
987
988 // As per "drawSmoothArc" except the ends of the arc are NOT anti-aliased, this facilitates dynamic arc
989 // length changes with arc segments and ensures clean segment joints. The sides of the arc are

Callers 1

drawArrowsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected