chore: import official kitty sources from upstream
Bring the kovidgoyal/kitty codebase in as the base of FWS-Kitty, vendored at upstream commit 91fb38a without its git history.
This commit is contained in:
1134 files changed
+433629
No files matched your search
@@ -0,0 +1,23 @@
|
||||
// License: GPLv3 Copyright: 2023, Kovid Goyal, <kovid at kovidgoyal.net>
|
||||
|
||||
package images
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"image"
|
||||
|
||||
"github.com/kovidgoyal/imaging"
|
||||
"github.com/kovidgoyal/imaging/nrgb"
|
||||
)
|
||||
|
||||
var _ = fmt.Print
|
||||
|
||||
func (self *Context) paste_nrgb_onto_opaque(background *imaging.NRGB, img image.Image, pos image.Point, bgcol *imaging.NRGBColor) {
|
||||
bg := imaging.NRGBColor{}
|
||||
if bgcol != nil {
|
||||
bg = *bgcol
|
||||
|
||||
}
|
||||
src := nrgb.NewNRGBScanner(img, bg)
|
||||
self.run_paste(src, background, pos, func(dst []byte) {})
|
||||
}
|
||||
Reference in new issue
Block a user