bibliopixel.layout.matrix_drawing module¶
-
bibliopixel.layout.matrix_drawing.
bresenham_line
(setter, x0, y0, x1, y1, color=None, colorFunc=None)[source]¶ Draw line from point x0,y0 to x,1,y1. Will draw beyond matrix bounds.
-
bibliopixel.layout.matrix_drawing.
draw_char
(fonts, setter, width, height, x, y, c, color, bg, aa=False, font='8x6', font_scale=1)[source]¶
-
bibliopixel.layout.matrix_drawing.
draw_circle
(setter, x0, y0, r, color=None)[source]¶ Draws a circle at point x0, y0 with radius r of the specified RGB color
-
bibliopixel.layout.matrix_drawing.
draw_line
(setter, x0, y0, x1, y1, color=None, colorFunc=None, aa=False)[source]¶
-
bibliopixel.layout.matrix_drawing.
draw_rect
(setter, x, y, w, h, color=None, aa=False)[source]¶ Draw rectangle with top-left corner at x,y, width w and height h
-
bibliopixel.layout.matrix_drawing.
draw_round_rect
(setter, x, y, w, h, r, color=None, aa=False)[source]¶ Draw rectangle with top-left corner at x,y, width w, height h, and corner radius r.
-
bibliopixel.layout.matrix_drawing.
draw_text
(fonts, setter, text, width, height, x=0, y=0, color=None, bg=(0, 0, 0), aa=False, font='8x6', font_scale=1)[source]¶
-
bibliopixel.layout.matrix_drawing.
draw_triangle
(setter, x0, y0, x1, y1, x2, y2, color=None, aa=False)[source]¶ Draw triangle with points x0,y0 - x1,y1 - x2,y2
-
bibliopixel.layout.matrix_drawing.
fill_circle
(setter, x0, y0, r, color=None)[source]¶ Draws a filled circle at point x0,y0 with radius r and specified color
-
bibliopixel.layout.matrix_drawing.
fill_rect
(setter, x, y, w, h, color=None, aa=False)[source]¶ Draw solid rectangle with top-left corner at x,y, width w and height h
-
bibliopixel.layout.matrix_drawing.
fill_round_rect
(setter, x, y, w, h, r, color=None, aa=False)[source]¶ Draw solid rectangle with top-left corner at x,y, width w, height h, and corner radius r