Welcome to the world of imagilib where Python meets colors, pixels, and a lot of fun! 🌈 πŸ€– πŸ‘©β€πŸ’» πŸ“± Brought to you by imagi.

You'll see the following emojis next to each section that tell you the (difficulty) level of the learning content:

Adventurer πŸ™‹

Challenger πŸ•΅οΈ

Legendary πŸ‘©β€πŸ’»

imagilib is a unique library or a collection of variables and functions that you can use when you are programming in the imagi app. In addition to imagilib, only some standard Python libraries can be used in the our app: random, math, and datetime. You can read in more detail about how to use all these libraries, variables and functions below.


This section documents the objects and functions in the imagilib module.

imagilib is a PythonΒ library that contains all the predefined variables, functions and classes that can be used in the imagi app coding environment (code editor). The imagilib library is imported into each coding project so that the objects and functions are available from the start.

Environment variables

Adventurer πŸ™‹

Here is a list of the variables that can be used:

# Example
m[0][0] = on  # this turns on the pixel in the upper left corner of the matrix
m[7][0] = R  # this sets the color of the pixel in the bottom left corner to red


# Example
m[0][0] = on
blink_rate = 1 # this will make the pixel blink once per second