mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-07 19:51:51 +09:00
resample-dithering wip
This commit is contained in:
@@ -22,7 +22,7 @@ println(`dim: ${imgw}x${imgh}`)
|
||||
println(`converting to displayable format...`)
|
||||
|
||||
// convert colour
|
||||
graphics.imageToDisplayableFormat(imageData, -1048577, imgw*imgh, 4)
|
||||
graphics.imageToDisplayableFormat(imageData, -1048577, imgw, imgh, 4, true)
|
||||
|
||||
sys.free(imageData)
|
||||
sys.free(infile)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1752,6 +1752,10 @@ void main() {
|
||||
-286331137,
|
||||
0
|
||||
)
|
||||
|
||||
val DEFAULT_PALETTE_NUMBERS = DEFAULT_PALETTE.map { // [[r,g,b,a], [r,g,b,a], [r,g,b,a], ...]
|
||||
intArrayOf(it.ushr(24).and(255), it.ushr(16).and(255), it.ushr(9).and(255), it.and(255))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user