tonight I'll meet the
Nightmare Architect
It is possible to embed
images; in our case we simply use
object sprites, because they're available anyway.
Example of showing the 'cannabis leaf' (object ID 1):
<image src='cck1o.png'>
↑ index
tips & tricks
- If you dragged an element outside a panel (with activated clipping) and accidentally released the mouse button, you can't drag it back inside, because the element literally vanished under the panel's border and isn't visible/selectable any more.
While 'lost' character sprites can easily be set back via corner button, there's no such reposition command for objects, narrations or bubbles. (Side note: As long as a 'lost' narration is still (invisibly) highlighted, you can pull it back via reset button, though.)
In hopeless cases you'd have to temporarily switch off the clipping of the particular panel. Now you'll see the outside element and can drag it back home.
- Before you take a screenshot of a draft strip, make sure that the blue focus mark of the currently selected panel isn't visible - it might be distracting on a screenshot. To switch it off, simply close the open submenu, whichever it is.
↑ index
specs :: graphics
All graphics, as well as the entire strip design, consist of
greyscale tones. This makes it easier to approximate images from different sources visually and also reduces file size in general. (As an exception, some
object sprites might be
coloured nonetheless: if they need RGB hues by nature - e.g. country flags - or if it serves the psychological effect when embedded in bubbles.)
The target image format is
PNG with
8-bit palette and
alpha transparency - though after optimization the resulting palette is probably smaller (7-bit or less).
In most cases the
source images are JPGs found on the webs.
Here's a description of how to make them suitable for CCK characters/objects/backgrounds:
Preparation steps:
- Open the source pic in IrfanView or any image viewer with basic conversion features.
- Scale (menu: Image|'Resize/Resample...' (Control+R)) the pic, so the needed figure has an appropriate size.
Recommended dimensions:
- characters - max width ≈ 150 px, max height ≈ 200 px
- objects - depends
- backgrounds - depends
Recommended size method: Resample / Lanczos
- Crop surplus borders.
First select the area of interest with the lasso rectangle (which is available by default).
Then menu: Edit|'Crop selection' (Control+Y)
- Adjust contrast.
IrfanView has the menu item Image|'Auto adjust colors' (Shift+U) which does a good job in this regard.
Alternatively, sophisticated adjustments can be done manually via menu item Image|'Color correction...' (Shift+G).
- Convert to greyscale. Menu: Image|'Convert to Grayscale' (Control+G).
- Optionally sharpen the pic. Menu: Image|'Sharpen' (Shift+S).
- Save as 24-bit BMP.
Creating
standard sprites (simple transparency):
- Open the pic in MS Paint or any decent image editor.
- Make general edits if necessary, e.g. removing noise pixels or other cosmetic manipulations.
- Choose any palette colour that doesn't appear in the pic itself.
This will be our transparent colour, usually a saturated midtone green, purple, orange or yellow.
- Draw/fill the areas which ought to be transparent.
- Save as 24-bit BMP.
- Open it again in IrfanView.
- Optionally apply a final crop, so that the image exactly encloses the figure.
- Save as PNG.
In the PNG save dialogue use Compression level 0, and activate the checkbox 'Save Transparent Color' - this will allow you to pick (via mouse click) the transparent colour then, whichever you've chosen in MS Paint before.
Creating
advanced sprites (alpha transparency):
Final
optimization step:
- Go to tinypng.org.
- Drag/upload the pic - it gets processed immediately.
- Download the optimized version.
Possibly save it under its CCK target file name right away, so it can be used for tests in the CCK editor as soon as possible.
↑ index
specs :: fonts
CCK offers the three standard fonts...
- Arial/Helvetica (class = 'arial'):
ABC abc 123
- Times (class = 'times'):
ABC abc 123
(default title font)
- Courier (class = 'couri'):
ABC abc 123
... plus alternatives:
- Arial Narrow (class = 'arialn'):
ABC abc 123
(default panel font)
- Monospace (class = 'mono'):
ABC abc 123
- Comic (class = 'comic'):
ABC abc 123
- Gothic/Blackletter (class = 'gothi'):
ABC abc 123
While Arial, Times and Courier are common families, others need to be served as
webfonts to make them available to clients. Each webfont packet consists of 4 files (
*.ttf,
*.eot,
*.woff and
*.svg), so the majority of browsers and operating systems are covered.
Currently we supply webfont packets for...
- Monospace (inconsolata.*)
- Comic (unmaskedbb.*)
- Gothic (modernefraktur.*)
↑ index
specs :: files
All
filenames associated with comic strips begin with 'cck':
- target site
- cck[ID]L.png (character sprites, left side version)
- cck[ID]R.png (character sprites, right side version)
- cck[ID]o.png (object sprites)
- cck[ID]a.png (ambience: background images/patterns)
- cck.css (style sheet: strip layout and font definitions)
- editor
- cck_edit.html
- cck_ini.js (virtual db module)
- cck_img.png (icons)
- cck.ico (app icon)
- cck_doc.html (manual)
↑ index