Kiste
DE

KistePix — Learn to Program

The book teaches you programming from the ground up — in German, step by step — and by the end you have built your own pixel editor. Here you can download all the example code.

Example code for the book

The complete code for every chapter and every build stage — from the first basics to the finished KistePix. Every file was built and run with the real Kiste compiler before it went into the book.

The best way to learn: type the examples yourself, then compare with these files. The download is your safety net and your template for building further.

What's in the package

Two folders, matching the two parts of the book (the book itself is in German):

  • Part 1 — Basics: the small, runnable examples from chapters 0 to 9 — from the first sag "Hallo!" through variables, numbers, text, decisions, loops, functions and lists, up to windows and the mouse.
  • Part 2 — Building KistePix: the pixel editor in seven build stages (S1–S7) — the canvas, the pen, colors, the eraser, the rectangle, the fill bucket and the PNG export. Each stage is a complete, runnable program.

How to use it

  1. Install Kiste — see chapter 0 in the book or the download page.
  2. Open a .ki file in the Kiste IDE (Ctrl + O).
  3. Start it with F5. The basics examples write to the output area, the KistePix stages open a window.

Everything is free and open source. Read the book, type along, build your own pixel editor — and then keep building it.