@@ -23,10 +23,20 @@ for (const { cookie, id, installation, overrideConfig, post } of FIELDS) {
23
23
const totalSize = config . challengeConfig . size ;
24
24
const partitionSize = config . challengeConfig . partitionSize ;
25
25
26
- const canvas = await renderPartition ( totalSize , partitionSize , subreddit , challenge , sequence , name ) ;
26
+ const canvas = await renderPartition ( totalSize , partitionSize , subreddit , challenge , sequence , name , false , false ) ;
27
27
28
28
const writeStream = createWriteStream ( `${ OUTPUT_DIR } /${ id } .png` ) ;
29
29
canvas . createPNGStream ( ) . pipe ( writeStream ) ;
30
+
31
+ const bancanvas = await renderPartition ( totalSize , partitionSize , subreddit , challenge , sequence , name , true , false ) ;
32
+
33
+ const banWriteStream = createWriteStream ( `${ OUTPUT_DIR } /${ id } _b.png` ) ;
34
+ bancanvas . createPNGStream ( ) . pipe ( banWriteStream ) ;
35
+
36
+ const shadecanvas = await renderPartition ( totalSize , partitionSize , subreddit , challenge , sequence , name , true , true ) ;
37
+
38
+ const shadeWriteStream = createWriteStream ( `${ OUTPUT_DIR } /${ id } _s.png` ) ;
39
+ shadecanvas . createPNGStream ( ) . pipe ( shadeWriteStream ) ;
30
40
} catch ( error ) {
31
41
log ( "failed to capture screenshot for %s" , installation , error ) ;
32
42
}
0 commit comments