Skip to Content
Strange Code
book

Strange Code

by Ronald T. Kneusel
September 2022
Intermediate to advanced
496 pages
12h 32m
English
No Starch Press
Content preview from Strange Code

14FIREFLY

Image

Firefly is a minimalist programming language for animation and sound. Firefly targets the BBC micro:bit, but you don’t need one to have fun with the language—the console version will work just fine. The inspiration for the language comes from the 5×5 grid of LEDs that form the display of the micro:bit. The language manipulates a “firefly” that lives on the grid. As it flies, it leaves a luminous trail of light behind it. Oh, the firefly also sings, because why not?

This chapter introduces the philosophy and design of the language, followed by its implementation. The chapter ends with a section on configuring a micro:bit, should you wish ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Good Code, Bad Code

Good Code, Bad Code

Tom Long
Street Coder

Street Coder

Sedat Kapanoglu

Publisher Resources

ISBN: 9781098141363