-
- if (ch == '#') {
- // Next color is here, parse what we had before.
- setPalette();
- toGround();
- scanState = ScanState.COLOR_ENTRY;
- }
-
- if (ch == '!') {
- setPalette();
- toGround();
-
- // Repeat count
- scanState = ScanState.SIXEL_REPEAT;
- }
- if (ch == '-') {
- setPalette();
- toGround();
-
- if (height + 6 < image.getHeight()) {
- // Resize the image, give us another HEIGHT_INCREASE
- // pixels of vertical length.
- resizeImage(image.getWidth(),
- image.getHeight() + HEIGHT_INCREASE);
- }
- height += 6;
- x = 0;
- }
-
- if (ch == '$') {
- setPalette();
- toGround();
-
- x = 0;
- }