kopia lustrzana https://github.com/micropython/micropython
docs/library/framebuf: Clarify docs for blit regarding palette.
Clarified the behaviour when both key and palette are specified.pull/10000/head
rodzic
4ff10b5976
commit
859d0e9529
|
@ -133,7 +133,9 @@ Other methods
|
||||||
Draw another FrameBuffer on top of the current one at the given coordinates.
|
Draw another FrameBuffer on top of the current one at the given coordinates.
|
||||||
If *key* is specified then it should be a color integer and the
|
If *key* is specified then it should be a color integer and the
|
||||||
corresponding color will be considered transparent: all pixels with that
|
corresponding color will be considered transparent: all pixels with that
|
||||||
color value will not be drawn.
|
color value will not be drawn. (If the *palette* is specified then the *key*
|
||||||
|
is compared to the value from *palette*, not to the value directly from
|
||||||
|
*fbuf*.)
|
||||||
|
|
||||||
The *palette* argument enables blitting between FrameBuffers with differing
|
The *palette* argument enables blitting between FrameBuffers with differing
|
||||||
formats. Typical usage is to render a monochrome or grayscale glyph/icon to
|
formats. Typical usage is to render a monochrome or grayscale glyph/icon to
|
||||||
|
|
Ładowanie…
Reference in New Issue