Mosaicus
Contents›Painting›Light

Light

The Light tool (J) shines a light on the picture. The colors there go lighter where the light falls and darker where it doesn't, each along its own shading ramp: a red ball gets its highlights and shadows from the red ramp (light red to white, brown to black) rather than from a gradient painted over it. Treat the area as round or beveled and the light shows its shape: a disc becomes a ball, a box a cushion, and a logo's letters become bevels. Like a gradient, you place the light with a drag and it stays live, so you can move it and change its options and see each change at once, until you apply it.

A multicolor picture of three flat shapes lit by a sun from the upper left: a red ball and a gray box, each lighter toward the light and darker away from it in its own colors, and a green lozenge whose light is still live, its sun outside it at the upper left; the options bar above
A sun on three Round shapes

Placing a light

  1. Select the area to light, or select nothing to light the whole picture. Or set Fills to The area clicked: then the area is the one where your placing drag ends.
  2. Press where the light is and drag toward what it lights. For a sun, the line's length sets how high it is: the longer the line, the lower the sun. Hold Shift for whole 15° angles (and a sun's whole 5° heights).
  3. Let go. The light's line stays on the picture, live: the light at one end, a handle at the other.
  4. Adjust it, then press Enter to put it in, as one step in the history named Light.

While it's live:

  • Sun: drag either end to turn it, or to make the line longer for a lower sun or shorter for a higher one. Lamp: drag the lamp to move it, or the other end to change its reach.
  • Drag the line to move it; Ctrl-drag from an end for a new line from there.
  • Drag anywhere else to place it again.
  • Every option on the bar shows at once.
  • Enter or Apply (✓) puts it in, and so does a click outside what it lights; Esc or Cancel (✕) drops it. Choosing another tool, saving or exporting puts it in first.

A click without a drag places a sun at its last angle (from the upper left, to start) and Height, shining at the middle of the area, and a lamp where you click, reaching half across the area.

Darkness (the moon beside Shadows) turns the light round: what would go lighter goes darker, and what would go darker lighter (with Shadows off, it only darkens). Pressing with the right button turns one light round the same way (with Darkness on, back to light).

Sun and Lamp

  • Sun (the default): a light far away, from one direction, Height degrees above the picture (45 to start). The line's direction is the way it shines, and its length is how high the sun is, as a shadow's is: shown beside its end as the angle it shines toward (0° right, 90° down) and its Height. A line 32 pixels long is a sun 45° up; half that, about 63°; twice, about 27°. A flat surface facing a sun stays as it is: the sun shows the area's shape, so give it a Surface of Round or Bevel.
  • Lamp: a light at the line's start, reaching as far as the line is long, shown as a dashed circle and as reach beside the end. The picture is lightest at the lamp. With Shadows (the default) it fades to as dark as Strength takes it at the end of its reach (its own colors halfway there), and everything past its reach is that dark too: a spotlight in a dark room. Without Shadows it fades to its own colors at the end of its reach. On a round or beveled surface, the slopes turned toward the lamp are lit more and those turned away less. Its Height (30° to start) is the angle up to the lamp from the end of its reach, measured from the height of the surface's highest point.

Height (10° to 80°; its buttons step by 5°) changes how a raised surface is lit; a flat one doesn't change with it. A sun's follows its line, and its line follows it: set it on the bar and the sun moves along the line, its end staying. A low sun lights the slopes turned toward it and leaves those turned even a little away in the dark: a dome is half in shadow. A high sun lights from above: a dome's top stays as it is and the dome darkens toward its edge, with little highlight anywhere. A low lamp grazes the surface, lighting the slopes turned toward it more and darkening those turned away more; a high one lights more evenly. The sun and the lamp each keep their own Height.

The reach and a sun's line, like Width below, count as the screen shows the pixels: in a multicolor picture a wide pixel counts double across.

Surface

The surface the light falls on, raised from the area's edge:

  • Round (the default): rises from the edge in a curve, like a ball or a cushion. A disc becomes a dome; the corners of a box round off.
  • Bevel: rises from the edge in a straight slope.
  • Flat: lies flat. Only a lamp changes it.

With Whole on (the default), the surface rises all the way to the middle of the area. Turn it off to set Width (1 to 64; 8 to start): how far in from the edge it rises, with a flat top inside. A beveled box with a small Width is a raised panel; with Whole, a pyramid. Parts of the area that don't touch rise each on its own.

The options bar

  • Height: how high the sun or the lamp is (above).
  • Strength: the most steps along its ramp a pixel goes, lighter or darker (1 to 4; 2 to start).
  • Shadows: on, the side turned away from the light goes darker (and with a lamp, the outer half of its reach and past it); off, the light only lightens.
  • Ramp: the colors it steps through, shared with Shade in the Pencil, Fill and Shapes (see Shade). Auto takes each pixel's own color family. A pixel already at the end of its ramp stays as it is.
  • Dither: where a pixel falls between two steps, this dither mixes them, so the light fades smoothly; None (bands) gives each pixel its nearest step, in clean bands.
  • Darkness: the light the other way round (above).
  • Fills: The selection (the default; the whole picture when nothing is selected), The area clicked, or That color everywhere. With the last two, the area is the one where the drag that places the light ends (a click: the one you click), so you can press outside it, where the light is; to change it, place the light again.
  • Cells: as for any painting (Cell limits). Where a cell can't take every pixel's new color, what fits changes; with Keep cell colors each other pixel takes the farthest of its steps that its cell can take, or stays as it is (when many can't, the usual question asks what to do); Recolor cells recolors the cell to fit.

Where the light changes nothing, the bar says so while it's live, and applying it says why: a line ending outside the selection, a flat surface in a sun, colors already at the end of their ramps that way (or cells that can't take the new ones), or light falling too evenly for a step anywhere.

The Light tool isn't available in a charset logo, which has only its ink and letter colors.

TipA light shows a shape best on an area whose outline is that shape: select it with the Magic wand (or any selection tool). An area of many colors lights as a whole: each color steps along its own ramp.

  • Gradient: placing a live line, and edge gradients' glows and bevels in colors of your choosing.
  • Fill: Shade, one step lighter or darker over a whole area.
  • Pencil: Shade with a brush, and the ramps.
  • Cell limits