removed all set_pen_hsv

This commit is contained in:
Gee Bartlett 2022-12-21 14:42:08 +00:00
parent fe31465f09
commit f1560d383c
3 changed files with 0 additions and 18 deletions

View File

@ -226,7 +226,6 @@ namespace pimoroni {
virtual void set_pen(uint c) = 0;
virtual void set_pen(uint8_t r, uint8_t g, uint8_t b) = 0;
virtual void set_pen_hsv(float h, float s, float v) = 0;
virtual void set_pixel(const Point &p) = 0;
virtual void set_pixel_span(const Point &p, uint l) = 0;
@ -432,7 +431,6 @@ namespace pimoroni {
PicoGraphics_PenRGB565(uint16_t width, uint16_t height, void *frame_buffer);
void set_pen(uint c) override;
void set_pen(uint8_t r, uint8_t g, uint8_t b) override;
void set_pen_hsv(float h, float s, float v) override;
int create_pen(uint8_t r, uint8_t g, uint8_t b) override;
int create_pen_hsv(float h, float s, float v) override;
void set_pixel(const Point &p) override;
@ -449,7 +447,6 @@ namespace pimoroni {
PicoGraphics_PenRGB888(uint16_t width, uint16_t height, void *frame_buffer);
void set_pen(uint c) override;
void set_pen(uint8_t r, uint8_t g, uint8_t b) override;
void set_pen_hsv(float h, float s, float v) override;
int create_pen(uint8_t r, uint8_t g, uint8_t b) override;
int create_pen_hsv(float h, float s, float v) override;
void set_pixel(const Point &p) override;

View File

@ -15,13 +15,6 @@ namespace pimoroni {
src_color = {r, g, b};
color = src_color.to_rgb565();
}
void PicoGraphics_PenRGB565::set_pen_hsv(float h, float s, float v){
uint8_t r;
uint8_t g;
uint8_t b;
from_hsv(h, s, v, r, g, b);
color = RGB(r, g, b).to_rgb565();
}
int PicoGraphics_PenRGB565::create_pen(uint8_t r, uint8_t g, uint8_t b) {
return RGB(r, g, b).to_rgb565();
}

View File

@ -15,14 +15,6 @@ namespace pimoroni {
src_color = {r, g, b};
color = src_color.to_rgb888();
}
void PicoGraphics_PenRGB888::set_pen_hsv(float h, float s, float v){
// HSV Conversion expects float inputs in the range of 0.00-1.00 for each channel
uint8_t r;
uint8_t g;
uint8_t b;
from_hsv(h, s, v, r, g, b);
color = RGB(r, g, b).to_rgb888();
}
int PicoGraphics_PenRGB888::create_pen(uint8_t r, uint8_t g, uint8_t b) {
return RGB(r, g, b).to_rgb888();
}