lcd.drawLineWithClipping(x1, y1, x2, y2, xmin, xmax, ymin, ymax, pattern [, flags])

Draw a line only inside a rectangle

@status current Introduced in 2.4.0

Parameters

  • x1,y1,x2,y1 (positive numbers) coordinates of the start and end of the unclipped line

  • xmin,xmax,ymin,ymax (positive numbers) the limits of the rectangle inside which the line is drawn

  • pattern (FORCE, ERASE, DOTTED) please see Lcd functions overview

  • flags (optional) please see flags and color constants

Return value

none