7 lines
218 B
Text
7 lines
218 B
Text
|
|
def readPPMTask(inputFile, outputFile) {
|
||
|
|
makeGrayscale \
|
||
|
|
.fromColor(readPPM(<import:java.io.makeFileInputStream>(inputFile))) \
|
||
|
|
.toColor() \
|
||
|
|
.writePPM(<import:java.io.makeFileOutputStream>(outputFile))
|
||
|
|
}
|