ArticleslgStudy

computer science

Raster bar

Raster bar is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Raster bar rather than just read about it. In short: The raster bar (also referred to as rasterbar or copperbar) is an effect used in demos and older video games that displays animated bars of colour, usually horizontal, which additionally might extend into the border, an otherwise unalterable area of the display. Raster bar-style effects were common on the Atari 2600 and Atari 8-bit computers (because they could be easily displayed using the hardware of those systems…

Raster bar — main illustration
Raster bar — illustration

Key takeaways

  • Raster bar belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Raster bar to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Raster bar from memory before moving on to harder problems.

Reference excerpt

The raster bar (also referred to as rasterbar or copperbar) is an effect used in demos and older video games that displays animated bars of colour, usually horizontal, which additionally might extend into the border, an otherwise unalterable area of the display. Raster bar-style effects were common on the Atari 2600 and Atari 8-bit computers (because they could be easily displayed using the hardware of those systems) and then later in demos for the Commodore 64, Amiga, Atari ST, and Amstrad CPC. The term copperbar comes from a graphics coprocessor on the Amiga home computer referred to as the Copper (a shortened form of coprocessor). It can be programmed to change the display colors per scan line without requiring the CPU, except to update the position of the bars once per frame.

Horizontal raster bars Such computers had limited graphical abilities and usually a fixed number of colours or inks (e.g. a maximum of 16 on the Amstrad CPC) that could be displayed at any one time, which were often assigned from a colour look-up table (CLUT), which maps each displayable colour to one of a larger selection of possible colours (palette) of which the hardware was capable (e.g. 27 on the CPC). Raster bars and similar effects (e.g. having a HUD that uses a different set of colours than does the playing area) are achieved by changing the entries in the CLUT at specific times while the screen is being drawn (originally by the electron beam), in order to display a different set of colours in the subsequent portion of the screen. The most basic raster bar simply affects a single scanline by changing the value in the CLUT for the colour covering that line just before the electron gun draws it, and then changes it back to the previous colour once the line is finished. By using multiple colours in succession and carefully gradating the changes, an effect of metallic-looking horizontal bars can be achieved. Many graphics chips can trigger an interrupt, specifically called a raster interrupt, when the horizontal blanking interval or the vertical sync begins; thus, an interrupt handler can precisely time and perform the task of updating CLUT entries for raster bars and other colour-changing effects.

Vertical raster bars

A similar effect can be generated vertically, although it often does not extend into the border area. To generate vertical bars, the same line of video memory is repeatedly output every scanline. At the top of the frame, the video memory is typically blank, and every horizontal blanking interval it is updated with a new "bar" in a slightly different position, creating a "stepped" effect.

References

Further reading McAlpine, Kenneth B. (9 November 2018). "Bits and Pieces: A History of Chiptunes". Oxford University Press. p. 163. Retrieved 22 February 2026.

External links

Code examples Rasterbars in 16 bytes (Commodore 64) Various Rasterbar effects (Commodore 64)

Illustrations

Raster bar illustration
Raster bar: Example of vertical raster bars from Angel's "Coppermaster" Amiga demo, with horizontal raster bars in the background
Example of vertical raster bars from Angel's "Coppermaster" Amiga demo, with horizontal raster bars in the background

Worked examples

Example 1 — a first encounter with Raster bar

Start with the simplest possible case. Write down what Raster bar claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Raster bar before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Raster bar ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Raster bar

In research
Raster bar appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Raster bar in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Raster bar is common in secondary-school and first-year university syllabi. It links to neighbouring topics Computer graphics, Demo effects, so understanding it makes those chapters shorter.
In everyday life
Look for Raster bar outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Raster bar in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Raster bar means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Raster bar out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Raster bar in simple terms?

The raster bar (also referred to as rasterbar or copperbar) is an effect used in demos and older video games that displays animated bars of colour, usually horizontal, which additionally might extend into the border, an otherwise unalterable area of the display. Raster bar-style effects were common…

Why does Raster bar matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Raster bar?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Raster bar.

Tags

  • Computer graphics
  • Demo effects

Keep exploring