Update tritanium door colored textures
5
color datagen/tritanium_door.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
node ./base_with_mask.js block/decorative/tritanium_door_top block/decorative/tritanium_door_color_top
|
||||||
|
node ./base_with_mask.js block/decorative/tritanium_door_bottom block/decorative/tritanium_door_color_bottom
|
||||||
|
|
@ -1,56 +0,0 @@
|
|||||||
|
|
||||||
'use strict';
|
|
||||||
|
|
||||||
const fs = require('fs')
|
|
||||||
const root_main = './src/main/resources/assets/overdrive_that_matters/textures/block/decorative/'
|
|
||||||
const child_process = require('child_process')
|
|
||||||
|
|
||||||
const colors = [
|
|
||||||
['orange', [245, 116, 16]],
|
|
||||||
['magenta', [186, 63, 175]],
|
|
||||||
['light_blue', [59, 180, 219]],
|
|
||||||
['yellow', [252, 199, 36]],
|
|
||||||
['lime', [111, 187, 24]],
|
|
||||||
['pink', [243, 139, 170]],
|
|
||||||
['gray', [62, 66, 70]],
|
|
||||||
['light_gray', [140, 140, 131]],
|
|
||||||
['cyan', [22, 134, 145]],
|
|
||||||
['purple', [116, 38, 169]],
|
|
||||||
['blue', [51, 53, 155]],
|
|
||||||
['brown', [114, 71, 40]],
|
|
||||||
['green', [84, 109, 28]],
|
|
||||||
['red', [156, 37, 34]],
|
|
||||||
['black', [31, 31, 35]],
|
|
||||||
['white', [235, 235, 235]],
|
|
||||||
]
|
|
||||||
|
|
||||||
process.stderr.setMaxListeners(40)
|
|
||||||
process.stdout.setMaxListeners(40);
|
|
||||||
|
|
||||||
(async function() {
|
|
||||||
for (const [base, overlay, nameBase] of [['tritanium_door_base_top', 'tritanium_door_color_top', 'tritanium_door_top'], ['tritanium_door_base_bottom', 'tritanium_door_color_bottom', 'tritanium_door_bottom']]) {
|
|
||||||
for (const [name, rgb] of colors) {
|
|
||||||
const magick = child_process.spawn('magick', [
|
|
||||||
'convert',
|
|
||||||
|
|
||||||
`${root_main}${base}.png`,
|
|
||||||
|
|
||||||
'(',
|
|
||||||
`${root_main}${overlay}.png`,
|
|
||||||
'-size', '16x16',
|
|
||||||
`xc:rgb(${rgb[0]}, ${rgb[1]}, ${rgb[2]})`,
|
|
||||||
'-channel', 'rgb',
|
|
||||||
'-compose', 'Multiply',
|
|
||||||
'-composite',
|
|
||||||
')',
|
|
||||||
|
|
||||||
'-compose', 'Over',
|
|
||||||
'-composite',
|
|
||||||
|
|
||||||
`${root_main}/${nameBase}_${name}.png`])
|
|
||||||
|
|
||||||
magick.stdout.pipe(process.stdout)
|
|
||||||
magick.stderr.pipe(process.stderr)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})()
|
|
Before Width: | Height: | Size: 532 B |
Before Width: | Height: | Size: 561 B |
Before Width: | Height: | Size: 617 B After Width: | Height: | Size: 619 B |
Before Width: | Height: | Size: 739 B After Width: | Height: | Size: 736 B |
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 703 B |
Before Width: | Height: | Size: 736 B After Width: | Height: | Size: 733 B |
Before Width: | Height: | Size: 699 B After Width: | Height: | Size: 696 B |
Before Width: | Height: | Size: 706 B After Width: | Height: | Size: 702 B |
Before Width: | Height: | Size: 758 B After Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 723 B After Width: | Height: | Size: 721 B |
Before Width: | Height: | Size: 746 B After Width: | Height: | Size: 742 B |
Before Width: | Height: | Size: 758 B After Width: | Height: | Size: 754 B |
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 758 B |
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 758 B |
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 743 B |
Before Width: | Height: | Size: 724 B After Width: | Height: | Size: 721 B |
Before Width: | Height: | Size: 535 B After Width: | Height: | Size: 751 B |
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 758 B |
Before Width: | Height: | Size: 642 B After Width: | Height: | Size: 615 B |
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 720 B |
Before Width: | Height: | Size: 714 B After Width: | Height: | Size: 687 B |
Before Width: | Height: | Size: 741 B After Width: | Height: | Size: 715 B |
Before Width: | Height: | Size: 709 B After Width: | Height: | Size: 682 B |
Before Width: | Height: | Size: 712 B After Width: | Height: | Size: 688 B |
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 734 B |
Before Width: | Height: | Size: 729 B After Width: | Height: | Size: 702 B |
Before Width: | Height: | Size: 750 B After Width: | Height: | Size: 724 B |
Before Width: | Height: | Size: 762 B After Width: | Height: | Size: 735 B |
Before Width: | Height: | Size: 764 B After Width: | Height: | Size: 738 B |
Before Width: | Height: | Size: 764 B After Width: | Height: | Size: 738 B |
Before Width: | Height: | Size: 746 B After Width: | Height: | Size: 722 B |
Before Width: | Height: | Size: 725 B After Width: | Height: | Size: 699 B |
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 537 B |
Before Width: | Height: | Size: 764 B After Width: | Height: | Size: 738 B |