Coloring in Detail
00:00 Coloring in detail. If you want to take your QR codes up a level, then you can also change the color of the data modules. The data modules are the black and white blocks where the data is actually stored.
00:14
To change the colors of the dark data modules of the QR code, you can set a color of your choice for the dark_data
argument. In the save
method on screen, you can see the file name being changed
00:32
and the data_dark
argument being added to the save
method and set to green. As you’d expect, this will change the colors of the dark data modules to green.
00:45
You can see the effect of this on screen. As you might expect, you can add a data_light
argument to the .save()
method as well to change the colors of the originally white data modules. On screen, you can see this being set to light green,
01:03 and you can see the effect of this in the QR code on screen. This allows you to control not only the appearance of the QR code, but also have more understanding of the format itself.
01:16 Segno offers color customization of each element of the QR code, which can also allow you to delve deeper into the format. You can see the full details of this at the documentation page seen on screen.
01:29
Changing the colors of the background quiet zone and modules of the QR code is useful, but you can also rotate your QR codes for a unique creative twist. In the next part of the course, you’ll learn how to apply the .to_pil()
method to rotate your QR codes.
Become a Member to join the conversation.