mirror of
https://github.com/Dadido3/noita-mapcap.git
synced 2024-11-18 17:17:31 +00:00
Fix some stuff
- Mark mod as compatible - Change mod description - Update go version - Speed up image stitching 2x - Fix stitching progress bar
This commit is contained in:
parent
c78a8b56ae
commit
47f58553cf
@ -1,6 +1,6 @@
|
||||
language: go
|
||||
go:
|
||||
- "1.14.x"
|
||||
- "1.15.x"
|
||||
|
||||
env:
|
||||
- GO111MODULE=on
|
||||
|
@ -72,6 +72,14 @@ func (mbi *MedianBlendedImage) At(x, y int) color.Color {
|
||||
return mbi.cachedRow.RGBAAt(x, y)
|
||||
}
|
||||
|
||||
// Opaque returns whether the image is fully opaque.
|
||||
//
|
||||
// For more speed and smaller filesizes, MedianBlendedImage will be marked as non-transparent.
|
||||
// This will speed up image saving by 2x, as there is no need to iterate over the whole image to find a single non opaque pixel.
|
||||
func (mbi *MedianBlendedImage) Opaque() bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// Progress returns the approximate progress of any process that scans the image from top to bottom.
|
||||
func (mbi *MedianBlendedImage) Progress() (value, max int) {
|
||||
size := mbi.Bounds().Size()
|
||||
|
3
compatibility.xml
Normal file
3
compatibility.xml
Normal file
@ -0,0 +1,3 @@
|
||||
<Mod _format_version="0"
|
||||
version_built_with="4">
|
||||
</Mod>
|
Loading…
Reference in New Issue
Block a user