-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathConfig.pde
71 lines (50 loc) · 1.7 KB
/
Config.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
class Config {
boolean useServer = false;
boolean outputSmallSize = false;
int smallSize = 384;
boolean autoplay = false;
int pxDensity = 1;
int gridW = 4;
int gridH = 4;
int maxCellW = 4;
int maxCellH = 3;
int numBackgrounds = 3;
boolean allowVerticalPanels = true;
// PRINT_PPI specifies both the output resolution AND the resolution of input images
int printPPI = 600;
float cellSizeInches = 0.75;
float printMarginInches = 0.125;
// How big should the comic appear on screen
// with 600 ppi, 0.24 looks right on MPB screen
float screenScalePcent = 0.24;
String imgSrcFolder = "600ppi";
boolean useSimpleFilename = false;
boolean autosave = false;
float coordinateScale = 1.0;
Config() {
// default config
}
Config(int pxDensity, int ppi, float printMargin, float screenScale, String imgFolder, boolean autosave) {
this.pxDensity = pxDensity;
this.printPPI = ppi;
this.printMarginInches = printMargin;
this.screenScalePcent = screenScale;
this.imgSrcFolder = imgFolder;
this.autosave = autosave;
// since coordinates are based on 600 ppi images
this.coordinateScale = printPPI / 600.0;
}
Config(int pxDensity, int ppi, float printMargin, float screenScale, String imgFolder, boolean autosave, boolean useSmallSize, int smallSize, boolean useSimpleFilename) {
this.pxDensity = pxDensity;
this.printPPI = ppi;
this.printMarginInches = printMargin;
this.screenScalePcent = screenScale;
this.imgSrcFolder = imgFolder;
this.autosave = autosave;
this.outputSmallSize = useSmallSize;
this.smallSize = smallSize;
this.useSimpleFilename = useSimpleFilename;
// since coordinates are based on 600 ppi images
this.coordinateScale = printPPI / 600.0;
}
}