-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflipCreate.js
17 lines (15 loc) · 960 Bytes
/
flipCreate.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(async ()=>{
let fs=require("node:fs");
let settings={frames:12,locked:false,thumbIdx:0,users:{
root:{"id":"1440D700CEF78DA8","name":"Ponali"/*"root"*/},
parent:{"id":"1440D700CEF78DA8","name":"Ponali"/*"parent"*/},
current:{"id":"1440D700CEF78DA8","name":"Ponali"/*"current"*/}
}}
let filename=require("./encoding/filename").generateFilename();
let animData=require("./encoding/animation").createAnimationData(settings.frames,false);
let soundData=await require("./encoding/sound-group").createSoundData("","","","",7,6);
let header=require("./encoding/header").generateHeader(animData.length,soundData.length,settings.frames,settings.locked,settings.thumbIdx,settings.users.root,settings.users.parent,settings.users.current,filename,filename,filename,null);
let thumbnail=require("./encoding/thumbnail").randomThumbnail();
let out=header.concat(thumbnail,animData,soundData).flat();
fs.writeFileSync("output.ppm",Buffer.from(out));
})();