All right, so welcome back again. So in the previous tutorial, we saw how to add colors to our CLA using Tim color. So in this tutorial, we're going to see how to add another alternative of adding colors in a different package. Let's see how to do this. I'm just going to clear all this, then we're going to create another file, right? So let's call this one as colors with color.
Color with colorable is the name of the particular using for our class colors. Very interesting. So let's close out of this. So how do we record it? So the basic idea is that first of all, it is going to install color on switches. So just go with pip install, color, or color.
Right? Very, very difficult just how to work with it. So you can install it on Windows when you understand it's going to work. But how it works is different on Windows and an on on Windows and an on Linus origins Be system. So we seen that one in that upcoming session. So that is how to install.
So let's create something very basic. So I just copy this to save us time. Copy this, to see what time right so that we don't repeat the same thing. So I'll copy this off piece of this tool, we're going to take off all of this, we don't need any of these anymore. To do the same thing I've done it right, so let's decode this. And let's check up what is working perfectly RC Li, there's going to be a Python three then we're passing my color with that help and it's working perfect right everything is working as expected.
So let's see how to work with it. So the simplest way of working with it is that you are going to face a file import it. So let's import it so is going to be from here to be from from Kala drama input. Yes, ever since 2003, in case you're working on unit on Windows, you just go it, put it in, it's going to enable us to be able to use the sky colors on Windows, right. But if you're not on Windows, you can still use it without it. Then the next one is we need to port for for foreground color, then we need to go back for background color, add important stuff for staff so that they can use it to mean stuff.
You're going to put in it for initializing on reduce to Windows, foreground background and stuff. So let's see how to record it. So first of all be adding the colors to it. For the simplicity of it Nicola does not do the normal print, then what you add a color to it. So first of all, I'm just going to pass the names for for the foreground color, then I'll specify the particular color which I want the foreground color to be blue. So in this color must be in cups right?
Then I can just go on with the same thing that we have here. So let's copy this here and paste it here. He's going to give us our full color for one color as blue. So let's save it. Let's run it See I come back here so the same thing as good if that let's give it a different name likeness Mark Marcus in a second Hello monkey so they face Mark was right was cut make Buddha the face Mark Marcus was with our color. As you can see here it's without color but the second one is with a color right the color was foreground color is blue is it basically this is I want to add a background color to it.
Then I can just change it. So there are seven colors is supposed to go with blue, cyan, magenta and the rest so let's add another color to it. So you can see that the circle is supposed to this is going to be magenta to concrete. Jen, I hope magenta is supported. Must see Let's also put magenta. So let's come back again to this, run it again.
So we see that we have our blue foreground and our magenta foreground. Let's add another color for the background. So this is how to work with focal, we get also to work with background, I can supply the background color, so I'm just going to go to this option and supply the background color BG to back does not supply the particular color. So what color do I want for these two, I want the background color to be quite staccato. If I save it and I come back here and now I can run it and I can see that we have Hello right in macros. But you see you notice something that once you set off like this, it influences the next color.
Right? So that is one disadvantage when you are using color oma, right? So that is a bug right to see that is affecting it. Let's change it and see so you can actually see what I mean. I'm going to change this one from black to black. So you see that is actually affected.
So background color is a black hole black is supported. I come back to this ironic that now even Dennis one following is still black, that isn't the best method right? The simplest way that after doing this you can reset it with this stuff, right so I can come back to this place can go with my style to sit is to print then style that a particular style and style so good to be reset. We have several styles if I go You said oh no is going to reset that. So that if I run it again. Now my Is it good secured, right?
The same thing can be here. So if I come back to this and then let's put in a claim test so there's going to be claims. If I play this claim that in between our blue color and our magenta considered the blue is going to influence the one without color. So let's go this one without color. This is going to be without color. Apologies for the noise.
So without color, so this without color is going to also be influenced by the first one. So let's see, if I run it. I said there we don't color is blue, right? This one is blue, but I did not specify any color, there is a disadvantage, or something that you have to face. So how do you fix it, simply by going with pre install, then you just pass that breast on to the points that you don't want to see that come back here. They put no it's going to reset it to that point, then the next one is going to be without the color.
So let's try it again. So run it now see that without color is without color is how to work with karma. So karma is very interesting. You see the option of doing some interesting stuff, it always foreground background color can add format here, so we have stars, it all comes with another color likeness. A preset can also be dim. So let's say this one to dim, which you come to do, come back here.
Can I run it again? Now? This is Tim right? It still affected this one. So we have to always make sure that after every color you end it with reset. Then we have to see it working perfectly well.
Let's write again. Now it's working, it's not affecting anyone. So that is how to work with Chroma and how to add colors to your CLR using color aroma. So thank you for watching. I'll see in the next session. Stay blessed.