kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Renamed thick_line
rodzic
2bdb05ce68
commit
5a62a79a93
|
@ -170,7 +170,7 @@ namespace pimoroni {
|
||||||
}, t, p.x, p.y, s, a);
|
}, t, p.x, p.y, s, a);
|
||||||
} else {
|
} else {
|
||||||
hershey::text(hershey_font, [this](int32_t x1, int32_t y1, int32_t x2, int32_t y2) {
|
hershey::text(hershey_font, [this](int32_t x1, int32_t y1, int32_t x2, int32_t y2) {
|
||||||
thicc_line(Point(x1, y1), Point(x2, y2), thickness);
|
thick_line(Point(x1, y1), Point(x2, y2), thickness);
|
||||||
}, t, p.x, p.y, s, a);
|
}, t, p.x, p.y, s, a);
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
|
@ -298,7 +298,7 @@ namespace pimoroni {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void PicoGraphics::thicc_line(Point p1, Point p2, uint thickness) {
|
void PicoGraphics::thick_line(Point p1, Point p2, uint thickness) {
|
||||||
// general purpose line
|
// general purpose line
|
||||||
// lines are either "shallow" or "steep" based on whether the x delta
|
// lines are either "shallow" or "steep" based on whether the x delta
|
||||||
// is greater than the y delta
|
// is greater than the y delta
|
||||||
|
|
|
@ -266,7 +266,7 @@ namespace pimoroni {
|
||||||
void triangle(Point p1, Point p2, Point p3);
|
void triangle(Point p1, Point p2, Point p3);
|
||||||
void line(Point p1, Point p2);
|
void line(Point p1, Point p2);
|
||||||
void from_hsv(float h, float s, float v, uint8_t &r, uint8_t &g, uint8_t &b);
|
void from_hsv(float h, float s, float v, uint8_t &r, uint8_t &g, uint8_t &b);
|
||||||
void thicc_line(Point p1, Point p2, uint thickness);
|
void thick_line(Point p1, Point p2, uint thickness);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void frame_convert_rgb565(conversion_callback_func callback, next_pixel_func get_next_pixel);
|
void frame_convert_rgb565(conversion_callback_func callback, next_pixel_func get_next_pixel);
|
||||||
|
|
Ładowanie…
Reference in New Issue