Picographics line thickness?

Is there a way to increase the thickness of a line in picographics? I am drawing an indicator dial and one line of pixels is not enough. I dont see any reference here: pimoroni-pico/README.md at main · pimoroni/pimoroni-pico · GitHub

You may have to use display.rectangle, which will let you set the width and height. Will only do horizontal and vertical though.

Your other option is to draw a second line, or third line etc, right next to the first one

I needed to do this so adapted some code from the Adafruit GFX lib to draw a line using circles. Hope this helps…

def thick_line(display, x0, y0, x1, y1, weight=1):
        """Line drawing function with weight, adapted from code in Adafruit CircuitPython GFX lib.  Draw a line with circles, weight 1 is actually 2px as it's the radius"""
        steep = abs(y1 - y0) > abs(x1 - x0)
        if steep:
            x0, y0 = y0, x0
            x1, y1 = y1, x1
        if x0 > x1:
            x0, x1 = x1, x0
            y0, y1 = y1, y0
        dx = x1 - x0
        dy = abs(y1 - y0)
        err = dx // 2
        ystep = 0
        if y0 < y1:
            ystep = 1
        else:
            ystep = -1
        while x0 <= x1:
            if steep:
                display.circle(y0, x0, weight)
            else:
                display.circle(x0, y0, weight)
            err -= dy
            if err < 0:
                y0 += ystep
                err += dx
            x0 += 1

Andy