Skip to content

Commit

Permalink
Add a few RGB-aware set & blend methods to the blitters (#1680)
Browse files Browse the repository at this point in the history
* BlitBuffer: Added a fill_rect variant that takes an RGB32 color as input
* BlitBuffer: Added a couple of blend OVER & blend MUL methods to handle color highlights
* BlitBuffer: Added a color_blit_from variant that takes an RGB32 color as input
* C BlitBuffer: Fix a few minor compiler warnings
* BlitBuffer: Rename the awfully named dimRect & lightenRect methods to lightenRect & darkenRect, respectively. Because they did the opposite of what it said on the tin. Added more comments explaining the results to avoid further confusion.
* BlitBuffer: Defined a set of highlight colors as `BB.HIGHLIGHT_COLORS` (user patchable), most of them having a more pastel variant because those look slightly less terrible on Kaleido panels.
* BlitBuffer: Added a few miscellaneous methods to ease working with this in front.
* Kobo MTK: Increased the alignment constraint, because the HL color popup was getting cut off.
* MuPDF: Support color annotations in `addMarkupAnnotation`

Many thanks to @smasher816 for the initial implementation ;).
  • Loading branch information
smasher816 authored Aug 29, 2024
1 parent cb51ad4 commit dbe9f09
Show file tree
Hide file tree
Showing 5 changed files with 880 additions and 49 deletions.
Loading

0 comments on commit dbe9f09

Please sign in to comment.