This video uses the pygame module and python code to create a fun paint program from scratch! After a brief project showcase in the beginning describing the code and highlighting the python functionality built, I dive right into a line by line programming tutorial!
Pygame is a great GUI framework for python and makes creating fun and awesome looking projects super easy! If you liked this be sure to leave a like on the video and comment letting me know what you want to see next! Be sure to subscribe for tons more great content coming out every week!
Timestamps: 00:00 Intro + Showcase 01:09 Setting Up Pygame 06:05 Drawing the Tool Bar 18:05 Player Clicking Buttons 25:00 Track the Mouse and Draw When Clicking 32:00 Extra Functionality + Cleanup!
what's up you guys welcome back to the
channel today i have a super fun
tutorial for you i'm going to show you
how to create paint from scratch using
python and the pie game module
[Music]
so building paint is not at all
complicated it is super fun and it's
obviously something that uh is a
terrific project for beginners or
experienced programmers who are trying
to get more familiar with the pie game
framework the core aspects of this game
really just boil down to letting the
player user select a brush size letting
the user select a different color and
then tracking the mouse position and
keeping track of when we've clicked to
draw those images onto the screen the
whole project isn't even 100 lines of
code and you can do it in way under an
hour if you have any questions on what
you see in this video or want to see
some additional functionality in a
future video let me know about in the
comments below if you're enjoying the
tutorial and like the content on the
channel be sure to subscribe and check
out tons of our other stuff now let's
start the tutorial
alright let's get going on building our
own paint so i'm going to blast through
some of the initial setup stuff since
they're pretty generic to every time you
use a pie game
game and use this framework but
be sure to let me know if you have any
questions or comments or need me to slow
it down in future
videos essentially start by importing
the pi game module if you don't have it
you might have to run pip to install it
and then do pygame dot init a few things
every game is going to need you want to
set up a frame rate right in the
beginning and you want to set up a timer
that's going to control how fast your
game runs by doing pygame.time.clock
just like that if you're going to have
any text in your app then you want to
set up a font here as well i do that in
my other ones but actually for paint we
don't need any text so we're not going
to worry about that right now
you are going to want to put i typically
think it's useful to put the width and
the height of your game
in variables i don't recommend just hard
coding it and then you have to keep
referencing
back to the beginning to see where you
first hard-coded it to use it
so we'll do uh with 800 and height 600
but for sure on your application make it
whatever size you want that works well
for a little widget pop-up
paint
and then we're going to use that in
screen and that's going to be pygame dot
display
dot set mode and then all we have to do
is give it our width and our height so
again that would be where you'd hard
code your values if you wanted to but
we're going to be using those a lot as
you'll see throughout this project so i
like the idea of setting it up right
there and then last thing we'll do up
here for now is we'll do pygame dot
display dot set caption
and uh let's just call this paint
because i don't think that's copyrighted
um
so we'll go ahead and start right there
and then uh let's start by just doing
everything we have to do to get the game
running so we'll say wall run
and just above this we're setting up the
main game loop as i like to call it but
essentially it's just your active loop
the code that runs constantly while your
program is running and so to get this to
start up you're going to want to use
this run variable and set it equal to
true and that's also how you'll see in a
second we're going to control when to
quit out of the game so while we're
running we want to use that timer that
we set up and we use this dot tick
operation and then you give it your
frame rate so the speed at which you
want it to run you could punch a 60
right in there if you didn't want frame
rate to be equal to 60 but i like having
that in a variable i like putting
everything into a variable it's just
easier to track it down later
so we'll do timer.tick at the frame rate
and then we'll do screen.fill and all we
have to do here is give it a color and
something i actually really like about
the pie game framework is if you have
quotations you can type in a lot of
colors and it can process them just like
this typing in white just like this is
the same as typing in an rgb value here
of like two five five two five five two
five five
it could handle this as well that's what
it's actually looking for is an rgb but
it knows that this white is uh
correlated to that so we're gonna do
screen dot fill and then this is what i
call the event handling and it's
essentially you wanna start with four
event in pygame dot event event dot get
and this is handling everything in your
game so this event.get is getting
everything from the keyboard your mouse
basically everything that's happening to
your computer is in this pie
game.event.get and the first thing we
want to do is just say if
event.type is equal to
and then pygame.quit like like this
um
and so that's you'll see the default pi
game window when it opens up in just a
sec has the red x button that's like
standard in all applications it's up in
the top right corner but you have to
tell it what you want the game to do
when you press that button and what we
want to do is pretty simple we're just
going to set that run variable equal to
false
so we'll say run equals false and then
we'll come out of this for loop down
below and we'll do
pygame.display.flip so this is what you
have to add to actually get things drawn
onto your screen
and then the last line is just pygame
dot quit meaning we've made it out of
this wall run loop and now we can just
quit out of the
application so
these 24 lines of code not even because
of all the spaces are should be all we
have to do to get our basic window
opening up and here you go you can see
it's just a plain white rectangle
but this is cool we have an application
and now we're going to start adding
stuff to it okay
so right under screen dot fill dot uh
screen dot fill of white i'm going to
put our first function in here and i'm
going to call it draw grid
or i'll say draw a menu because what i
want to do now is i want to put a banner
up at the top that has the different
brush sizes and the different colors
that the player is going to be able to
select and it's a lot cleaner code to
separate this out from your main game
loop in a function called draw menu so
to set up a function you come up here
and you say define draw menu and then a
colon and now we're inside of the
function that's going to run every
iteration of that loop
so let's start with a background
rectangle
pygame.draw.rect and we'll put it on the
screen and for this one i think we'll
make it gray so that it's a little
different from the white background but
we will be able to use white or black on
a gray background and it'll still look
good
okay so we'll say uh put it on the
screen make it gray and then we're gonna
for this rectangle argument which comes
third we need to give it four arguments
we give it an x and y start position and
then we give it a width and we give it a
height
and you can play around with these if
you want i like the idea of having this
rectangle span the entire width of the
screen and 70 high was plenty high for
all the functionality i wanted to add so
i'm going to go ahead and run it and you
can see we get this gray banner across
the top i'm going to be able to fit all
of the basic buttons i want to put in
this game right here
you can play around with it if you want
to change up the style of yours at all
all right so now we'll just do something
to help kind of differentiate the top
space from the rest of the screen we'll
draw a line at the very bottom
and we'll make it black so we do
pygame.draw.line
put it on the screen make it black and
then this needs two set of coordinates
for drawing a complete line it needs an
x and y start coordinate
and we'll make it x coordinate 0 y
coordinate 70 to put it right at the
bottom of that rectangle we just made
and then the end position um we're going
to make it at the width of the screen so
meaning the second coordinate is all the
way across
and still at 70 so it'll be a horizontal
line
and then we can actually after that n
coordinate we can come in and give it
one more argument which is going to be
the width of the line and we'll make it
three so if you see that now that
actually looks a lot more like a menu
it's a different color and then it has a
border as well so that's what we just
did there
all right now let's get into the actual
useful stuff which is going to be we're
going to start um drawing the different
buttons for the different brush sizes
for the player so we'll start with this
um i'll call it xl brush so meaning the
extra large brush
and let's start just putting rectangles
on the screen so pygame.draw.rect
i'm going to go fairly quick through
these because we've drawn one rectangle
already so
hopefully the format doesn't
doesn't throw you off here but
my basic way of showing the player the
different brush sizes is going to be
putting a black rectangle on the screen
and then a white rectangle in front of
it of the size that the brush is
actually going to be
so we'll say put this rectangle on the
screen and make it black
and then for the actual rectangle
arguments let's just make it start at 10
and 10 so it gets away from the
it gets away from the top and the left
edge by a little bit and then we'll make
it 50 50
just so that it is uh not completely
filling it so let's take a look at that
and um i think that looks pretty good
hopefully uh you concur but let's move
on now so i'm gonna draw the four boxes
for it we're gonna do extra large
large medium and small
and basically i like having these 10
pixel spaces so we're just going to be
moving them
basically 60 at a time to the right so
we'll do 10
70 130 and 190
and there we go we have four rectangles
now that's not really useful yet because
we're not doing anything to
differentiate them
and so let's add that that's going to be
this pie game.draw.circle
and then this is still going to be on
the screen now this we're going to make
white
and we're going to give it a center
right in the middle of those squares so
that's the next argument that the circle
needs is the center point and if you
think about this starts at 10 10 and
then it's 50 by 50. so the middle needs
to be 3535
and now for this extra large brush i
think we're going to go ahead and make
the radius 20 so we'll make the size of
the circle 20. let's go ahead and look
at that real quick
yeah that looks pretty good that's a
fairly large circle inside the rectangle
and i think that's a fine
extra large brush size
okay now let's go ahead and do the next
one so this will now be the large brush
size and we'll just go down five pixels
at a time
and again all we have to do is just
scoot it 60 pixels to the right because
the center point for the y
is going to be the same for all of these
so we'll make the medium brush 10 pixels
and at 155
and then we will make the small brush
just 5 pixels
and centered at 215. now let's go ahead
and look at that make sure we didn't do
anything silly here yeah and i think
that looks really good though it's going
to give you four very different options
for painting once we get into it
okay now let's do the second part of
this grid that's going to be really
important and that is going to be
drawing the different colors that the
player has access to onto the screen and
so i know i said that uh pygame can
process a lot of colors but actually for
this one i'm going to use rgb values to
make it clear
if you want to add any additional number
of colors to your app this is how you do
it and all you have to do is change
these rgb values
okay so let's start drawing these
rectangles and i'm going to start all
the way at the right
at the right of the screen so i'll start
with just a basic blue
and we're going to use
pygame.draw.rect and so there's going to
be a lot of pygame.draw.rect in this
next section so i'll be copying like
this the basic
shape each time and just modifying
coordinates
but so uh all colors on a computer um
are going to be r g and b and if you
ever are trying to search for a specific
color there are literally a million ways
of figuring out the rgb value of your
specific color you can google it you can
play around with trial and error
or you can use like a color wheel tool
and kind of figure out what you're
looking for
basically r g and b
so for blue it makes sense there's no
rng it's just b and that's going to be
like a real dark but very like vibrant
blue
and now we're going to put this over
towards the right
edge of the screen but still not fully
touching we're still going to keep some
borders
um but this so let's put it at width
minus 35 and we'll make it half the size
of those previous ones
we'll still have it come down 10 but
we'll make it 25 wide and 25 tall
okay and hopefully this is going to give
us a blue rectangle over on the right
yep there we go and now let's pack a
whole bunch of colors in
really close to that blue rectangle kind
of like a traditional paint app
which gives you like a little menu of
the common colors to choose from so
we'll start with red blue green and
yellow
and we'll make sure those all look good
and then we will go ahead and add some
more as long as we get all those squared
away
so
um let's start by fixing the rgb values
red is obviously all r and then no g and
no b green is no r and no b just a lot
of g and then yellow
is all the r and all the g
but no b so it's two five five two five
five zero
and what i'm gonna do is i'm gonna do uh
these rectangles one on top of another
um and then
slowly move further left so for this
second one for red it's going to be all
of the same positions we're just going
to move it 25
down
and then so these next two are still
going to be at 10 and 35 but we need to
move them 25 further to the left so
it'll be minus 60 now
okay so hopefully these coordinates made
sense if not pause them and maybe think
about what we just did but there's so
many colors that we're about to draw i
don't want to slow down on this part too
much but you can see we have a blue a
red a green and a yellow so let's get a
few more colors because i like the idea
of
having a few more options than that
so let's just add a few more ones
that'll be easy because they're basic
rgb combinations
but really this is probably going to be
one of the things you'll really have
some fun with
so we'll just do teal and purple and
then white and black because those are
sort of all the basics so when i say
teal that's what you get when you get
all the g and the b and no r
and then purple is all the r and all the
b
sorry
i'm getting a little twisted there and
then white is all zeros and black is all
two five fives and so um to keep coming
back every time we have two new ones we
need to make sure we slide 25 further to
the left so
85 85
and then 100 10 110
just like that
and now if we load it in we should have
eight colors there you go so these are
eight standard pretty fun colors but i
think once we get the drawing mechanism
working
it's gonna look pretty darn good
so essentially
we're going to want to pass this list of
buttons
back to the main game loop so that we
can interact with them and check if the
players clicked on any of them and we'll
want to do that for the brushes as well
so what i'm going to do is i'm going to
create a list inside my function i'm
going to call it brushlist and i'm going
to put all of those rectangles that we
define up here i'm going to put them in
this list so xlbrush
l brush
m brush and s brush are going to be in
my brush list
and then in my color rectangle list
i'm going to put in
blue red
green
yellow
teal
purple
white and
black just like that and the reason i
did that um you'll see in a second
because we are about to interact uh with
the different colors
and actually like
be able to select one by seeing if the
mouse clicks on any of them so to pass
information back out of a function you
use a return statement
and we're gonna return two things we're
gonna start with the brush list
and then the color rectangle
and what you'll see in a second is we're
actually going to want to pass another
list of all these rgbs in the same order
as these rectangles so that we can
correlate the two but let's go ahead and
just start by
processing this so we're returning the
brush list and the color rectangle
which means this draw menu we actually
have to set it up this way
brushes
and colors are equal to draw menu
so if you
return or
send a different number of parameters
into a function than it actually uses or
calls for you're going to get an error
when you boot up so make sure you have
the same number of parameters coming
back and you send in the appropriate
number of parameters
all right so now what we're going to do
is we're going to say if event dot type
is equal to pi game dot and this is a
new one now mouse button down
so this means that you're clicking uh
the mouse
on and this technically is going to be
any mouse uh button so left click right
click you can distinguish that by like
checking what button was pressed
i'm gonna assume if you're clicking a
mouse button and you're on any of these
buttons you're okay with uh
you're okay with selecting that
so um then inside of this mouse button
down we'll do two um fairly similar
things but uh
we'll check through the two lists that
we just passed back to see if you
clicked on any of them and the way we'll
do that is we'll set up a for loop
and we'll say for i in range and we'll
start with the brushes list
length of
brushes okay so this is saying
for however long that brushes list is so
if you decide that you want to add three
more brushes go for it this coat will
work for you the exact same way so for
iron range length of brushes and what
we're going to do is check if
the
brush square
at i
collides with the mouse so it's going to
be if brushes
at i
dot and then this is a really nice
built-in tool that pi game the pi game
framework has dot collide point and then
all we have to do is give it an x and y
coordinate and it'll check if that
rectangle overlaps with that point and
the x and y coordinate in this case is
what's called event dot pause so that
means position pos and event.position is
an x and y coordinate it's a tuple that
shows the x and y position that the
mouse button is at when you click and so
this is a really useful tool and what we
want to do is say if brushes at i
collides with the event.position
we want to put that information into a
variable that's going to tell us what
size we should actively be drawing as so
we'll make this variable and we'll call
it active size
but we have to think about what we did
now because
you could come up here i guess and
probably flip the order of these
and put small first and extra large last
because i is actually going to be 0 for
20 and then it's going to be 3 for 5. so
what we want to do is say if active size
is going to be the radius of the circle
we're drawing with then i think we want
active size to be equal to 20 minus
i times five
and we're going to use this in just a
second to show
what size rectangle was
or what size brush was selected but
think about what this is doing
the first brush is the extra large brush
meaning it has a radius of 20.
so i in that list is going to be zero so
this is going to be 20 minus 0 so it'll
be 20 but then for the one that's 5 i is
equal to 3 and so if you decide to go
with more brushes or do them with a
different spacing just figure out this
formula on your own this is the one for
what we're doing in the video
and now we're going to come down oops i
added a backslash now we're going to
come down and we're going to basically
put that entire for loop in again but
this time instead of brushes we're going
to loop through the colors list and so
we'll say for i
in range length of colors
if colors
at i collides with the point event dot
pause and none of that has to change but
what we want now instead of active size
we want variable active color
and we want to set active color equal to
basically the rgb value of colors at i
and so to do that we're going to pass
one more thing just like i said um
color wrecked we're gonna pass
an rgb
list
back so we'll say rgb equals and then
new list and we'll just come
in here and start copying our rgbs in
make sure you get them in the same uh
order because that's what we'll be using
to
look up what the active rgb should be so
we just got to do a little
copy paste
and i know this part is a little bit
tedious but um it's actually pretty
smart the way we're doing it it's saving
us a lot of programming down the road so
bear with me zero two five five we're on
to purple
alrighty
and next we've got white
and then black almost done
alrighty so we're going to return that
rgb list which means we have to come
back to our function and say colors and
then also
rgbs and that's what i'll call it
if you don't like the name rgbs that's
fine but we'll set rgbs at i equal to
the active color and so now what we have
is we are checking what brush and what
color were selected
and storing those in these variables
active size
and active color so that's great now we
have this information on the outside
world
now what we should do is we should
initialize those variables because if
you have a variable
like active size or active color
that you use every loop and you call it
before the function has run once yet
you'll throw an error
because you try referring to a variable
before it's been defined in the code so
to start we'll just say active size is
equal to zero and we'll set active color
equal to white right when we start up
it doesn't matter because the size is
zero so it's not going to draw anything
but the color being white would also
make it invisible okay
so let's use the active color and the
active size you're probably saying great
we moved them into variables what are we
actually going to do with them good
question
let's go ahead and take a look at how
we're going to draw a little circle in
the correct size and color wherever your
mouse is
so to do that
to do that we're going to grab the
position of the mouse and i'm going to
put that in a variable i'm going to call
mouse and to do that we use the pi game
framework and it's pygame.mouse.getpaws
just like that and again it's going to
give us
an x and y tuple for the coordinates of
the mouse so that's what this is doing
and now that we have the
mouse position
we can check if the
uh
if the mouse is in a position where we
want to draw the circle
so i'm going to do it this way i'm going
to say if mouse
pause
no just mouse
at
1.
so this is index 1.
if you think what i just said mouse is
an x and y coordinate where the y
coordinate is index one so the x
coordinate is index zero y coordinate is
index one and i just wanna check that
it's off of the menu so the menu is the
first 70 pixels up top
and i don't want to draw on the menu you
shouldn't be able to draw on the menu in
most paint apps unless that's how you
want to do it
so as long as the mouse position is far
enough down we're going to do
pygame.draw.circle
and we're going to put it on the screen
and then for color we're going to use
active color and then for center it's
just going to be the mouse coordinates
and then for the radius it's just going
to be active size and so this now
should give us a
brush it's not yet going to give us the
functionality of painting but it should
let us test
our theory about the brush
changing
so there you go i selected the big brush
and i selected this teal light blue and
you can see it doesn't draw over the
menu it draws while we're in this window
now let's try going to the small brush
and pink and hopefully you can see there
it updates let's do medium and red
and so just like that
we're tracking the position of the mouse
and we have this preview of what it's
going to look like by drawing the circle
where the mouse is
so this is really cool we're super close
now what i think we want to do next is
actually take a look at how do you paint
things onto the board and to do that we
need to check if the
buttons have been pressed on the mouse
and we actually don't come down in this
mouse button down area this is checking
if any mouse button is pressed i want to
know specifically if the left mouse
button is pressed and so to do that
i'm going to make a new variable called
left click and i'm going to check to see
if the mouse button is pressed by again
calling pygame dot mouse
and then there's a built in function for
it called get pressed but get pressed is
going to give you three things it's
going to give you the left button the
right button and the scroll wheel middle
button and it's going to tell you true
or false if all of those are pressed so
what we want is just the first one which
is at index 0. that's going to tell us
if the left mouse button has been
clicked
and the reason this is important is
we're going to set up a
new if statement and say if the left
button is clicked
and
mouse
1 is greater than 70.
so uh essentially we're saying we want
to check if the mouse button is in the
area we do want to be able to paint so
not over the menu
but if that's the case we want the
circle that is where kind of the
background circle is we want that to be
committed to a list of
essentially all of the spaces we're
trying to paint
so to do that right in the beginning
when we load the app in and we have an
empty painting i'm going to make the
painting equal to an empty list
and all we have to do is say okay when i
click i want you to add some information
to painting so to do that it's painting
dot append and then the information we
want to append to it and so i want to
give it in parentheses a few things i
want to give it active color and then i
want to give it the mouse coordinates
oops i hit enter
and then i want to give it the active
size and this is all of the information
we need to store to tell a function what
information about that circle it needs
to draw it
so this is really cool we're creating a
list every time we have the left mouse
clicked and
the mouse is in the right spot so
we need to take this list and we need to
do something with it
and for that i'm just going to create a
new function that i will call draw
painting
and what we'll do is we'll pass in our
painting list just like this
and now let's come up and actually make
that function so underneath the menu
in here we'll do define
draw painting
and we are passing in the painting list
which i will just call paints
so you're probably familiar with the for
loops because we've done them a few
times but it's going to be 4i
in range length of paints so this is
going to go through the entire list of
painted
circles
and draw pygame.draw.circle
put it on the screen and now we have
passed in literally all the information
it needs directly in order so the color
is at paint i or paints i
index zero right think about this
function we when we append anything to
the painting list it's active color
mouse active size
so
it needs the
color first and then it needs the center
coordinates which are going to be the
next one and then it needs to know the
radius so we set this up in a really uh
great way to immediately draw every
circle that's in the paintings list
and this is it for the draw painting
list okay so let's go ahead and press
play i'm going to grab the big circle
and i'm gonna grab light blue and i'm
just gonna
oh
pie game has no attribute raw did you
mean draw yes i did okay so right here i
said pie game dot raw dot circle
which is hardcore
but we need pygame.draw.circle
let's try that again
all right that is sweet so i got um
yeah i can change colors i can change
brush sizes
one thing you might notice the like
background preview of the circle
is behind things that we drew already so
even though it draws correctly when we
um do
click to draw
we want the preview to be over top of
everything else and to do that all we
have to do is come down in our loop here
and where we draw the mouse which is if
mouse greater than 70 um then draw this
and all we have to do is move that below
where we draw the painting
so we want the circle to come after the
painting's been drawn this order is
really important because that will
determine what gets to be on top and
what's on the bottom
okay so one uh thing i think would be
really useful actually would be
indicating what the active color and the
active size are on our menu because
right now if you click a brush the only
way to see what size brush you have
selected is if you're down in the app
and same with the color
so let's go back to our
draw
menu i just lost track of it
here it is draw menu and let's pass in a
couple things let's pass in the active
size and let's pass in the active color
and let's take a look at how we're going
to use that so we did size and we did
color
and what i want to do for this
is i just want to come kind of in the
middle of the screen and i want to draw
a new circle so pygame.draw.circle
put it on the screen
and for color i just want to make it the
color that we pass in
and um for position it it doesn't really
matter pick some open space in the
middle of the screen
i'll put it close to the middle of the
menu so 40 35 for the middle and then
i'm gonna make this a pretty big one i'm
gonna make it 30.
and this is just gonna let you know what
color you have actively selected
um and it would look pretty cool with a
border actually so i kind of like doing
this i'm going to put a outside circle
that's going to be dark gray but the
exact same circle shape but i'm just
going to give it a border width of 3
and now you'll get this cool two-tiered
effect so you see it's a got like a dark
gray circle maybe you can't see it but i
kind of like the look and then you can
see when i select a color it tells me
what i have selected so that looks
pretty good
let's do one more thing with the active
size and let's just come down below
these rectangles
and let's say if size is equal to 20
then we'll want to take kind of this
rectangle and do that same sort of
border concept so this exact same border
or this exact same rectangle but we'll
make it green and we'll just make it a
border of three
and then we can come in
and we can kind of do that exact same
code
for 15
10 and 5 and you can optimize your code
a little bit by making these l ifs
because if you've already done one of
the previous ones you don't have to
check if the rest are valid you know
we're only doing one at a time
and then just make sure to scoot these
by 60
so
10 170 130 190
just like before and now this should be
all we have to do to get like a
rectangle yeah there you go
telling us what brush we've selected and
so i think that just makes the menu a
little better
and probably the final thing i'll
mention because hopefully you're having
a lot of fun following along but maybe
what you've noticed is if you take
something and you drag it very quickly
across the board you don't get a super
smooth shape and that is in effect um
that is happening because your frame
rate is at 60. so you can actually slide
the mouse quite a bit more than 60
pixels across the screen
per second
if your computer can handle it one way
to improve this smoothness um would be
you and you can see it doesn't look bad
it does track you pretty fast but if you
really streak across the screen
um
you don't get a smooth line at all if
your computer can handle it you can try
beefing this frame rate up to like 120
something higher like that and now
you'll see is if i streak across the
screen
it's still not perfect but it is way
smoother because it's drawing
effectively twice as many per second so
um it's kind of up to what your machine
can handle and if you really care maybe
you don't um and that's totally fine
so
that's the basics of it i hope you
enjoyed this tutorial if you did please
subscribe to the channel leave me a like
leave me a comment letting me know what
you want to see next that kind of stuff
helps me out a ton i've really been
enjoying all of the support i've been
getting and all the comments
and it's a lot of fun talking to you
guys
this channel has really taken off
recently and i couldn't have done with
all the support
without all the support from you all
so thank you so much hope you enjoyed
the tutorial i'll see you next time good
luck with your code and thanks for
watching thanks bye