PicoGraphics: correct hsv pen reference

docs/picographics_create_pen_hsv
Hel Gibbons 2023-02-28 15:16:08 +00:00 zatwierdzone przez GitHub
rodzic ab45fee123
commit 1cb170664e
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 6 dodań i 6 usunięć

Wyświetl plik

@ -170,6 +170,12 @@ In RGB565 and RGB332 modes this packs the given RGB into an integer representing
In P4 and P8 modes this will consume one palette entry, or return an error if your palette is full. Palette colours are stored as RGB and converted when they are displayed on screen.
You can also now specify an HSV pen, which allows a pen to be created from HSV (Hue, Saturation, Value) values, avoiding the need to calculate the RGB result in Python.
```python
display.create_pen_hsv(h, s, v)
```
To tell PicoGraphics which pen to use:
```python
@ -178,12 +184,6 @@ display.set_pen(my_pen)
This will be either an RGB332, RGB565 or RGB888 colour, or a palette index.
As of v1.19.14 you can also specify an HSV pen, which allows a pen to be created from HSV (Hue, Saturation, Value) values, avoiding the need to calculate the RGB result in Python.
```python
display.set_pen_hsv(h, s, v)
```
##### Monochrome Modes
For 1BIT mode - such as for Inky Pack and the Mono OLED - pens are handled a little differently.