platypush/plugins/luma/oled/__init__.py
def arc(self, start: int, end: int, xy: Optional[Union[Tuple[int], List[int]]] = None,
            fill: Optional[str] = None, outline: Optional[str] = None,
            width: int = 1, clear: bool = False):
        """
        Draw an arc on the canvas.

        :param start: Starting angle, in degrees (measured from 3 o' clock and increasing clockwise).
        :param end: Ending angle, in degrees (measured from 3 o' clock and increasing clockwise).
        :param xy: Two points defining the bounding box, either as [(x0, y0), (x1, y1)] or [x0, y0, x1, y1]. Default: bounding box of the device.
        :param fill: Fill color - can be ``black`` or ``white``.
        :param outline: Outline color - can be ``black`` or ``white``.
        :param width: Figure width in pixels (default: 1).
        :param clear: Set to True if you want to clear the canvas before writing the text (default: False).
        """
        if clear:
            self.clear()

        if not xy:
            xy = self.device.bounding_box

        with self.canvas as draw:
            draw.arc(xy, start=start, end=end, outline=outline, fill=fill, width=width)

        Draw an arc on the canvas.

        :param start: Starting angle, in degrees (measured from 3 o' clock and increasing clockwise).
        :param end: Ending angle, in degrees (measured from 3 o' clock and increasing clockwise).
        :param xy: Two points defining the bounding box, either as [(x0, y0), (x1, y1)] or [x0, y0, x1, y1]. Default: bounding box of the device.
        :param fill: Fill color - can be ``black`` or ``white``.
        :param outline: Outline color - can be ``black`` or ``white``.
        :param width: Figure width in pixels (default: 1).
        :param clear: Set to True if you want to clear the canvas before writing the text (default: False).
        
Draw an arc on the canvas.
Draw an arc on the canvas .
def arc(self, start: int, end: int, xy: Optional[Union[Tuple[int], List[int]]] = None,
            fill: Optional[str] = None, outline: Optional[str] = None,
            width: int = 1, clear: bool = False):
        if clear:
            self.clear()
        if not xy:
            xy = self.device.bounding_box
        with self.canvas as draw:
            draw.arc(xy, start=start, end=end, outline=outline, fill=fill, width=width)
def arc ( self , start : int , end : int , xy : Optional [ Union [ Tuple [ int ] , List [ int ] ] ] = None , fill : Optional [ str ] = None , outline : Optional [ str ] = None , width : int = 1 , clear : bool = False ) : if clear : self . clear ( ) if not xy : xy = self . device . bounding_box with self . canvas as draw : draw . arc ( xy , start = start , end = end , outline = outline , fill = fill , width = width )
Draw an arc on the canvas.
Draw an arc on the canvas .
"""
        Draw an arc on the canvas.

        :param start: Starting angle, in degrees (measured from 3 o' clock and increasing clockwise).
        :param end: Ending angle, in degrees (measured from 3 o' clock and increasing clockwise).
        :param xy: Two points defining the bounding box, either as [(x0, y0), (x1, y1)] or [x0, y0, x1, y1]. Default: bounding box of the device.
        :param fill: Fill color - can be ``black`` or ``white``.
        :param outline: Outline color - can be ``black`` or ``white``.
        :param width: Figure width in pixels (default: 1).
        :param clear: Set to True if you want to clear the canvas before writing the text (default: False).
        """
self
start
int
Starting angle, in degrees (measured from 3 o' clock and increasing clockwise).
Starting angle in degrees ( measured from 3 o ' clock and increasing clockwise ) .
end
int
Ending angle, in degrees (measured from 3 o' clock and increasing clockwise).
Ending angle in degrees ( measured from 3 o ' clock and increasing clockwise ) .
xy
Optional[Union[Tuple[int], List[int]]]
Two points defining the bounding box, either as [(x0, y0), (x1, y1)] or [x0, y0, x1, y1]. Default: bounding box of the device.
Two points defining the bounding box either as [ ( x0 y0 ) ( x1 y1 ) ] or [ x0 y0 x1 y1 ] . Default : bounding box of the device .
fill
Optional[str]
Fill color - can be ``black`` or ``white``.
Fill color - can be ` ` black ` ` or ` ` white ` ` .
outline
Optional[str]
Outline color - can be ``black`` or ``white``.
Outline color - can be ` ` black ` ` or ` ` white ` ` .
width
int
Figure width in pixels (default: 1).
Figure width in pixels ( default : 1 ) .
clear
bool
Set to True if you want to clear the canvas before writing the text (default: False).
Set to True if you want to clear the canvas before writing the text ( default : False ) .