 Hi everyone, in this video, I'm going to take you through my thought process as I make something like this Pokemon Oddish in our processing. So let's start by setting up our canvas, so we're going to give it a size of 600-600. You can make yours smaller, but I'm making mine this big because it's easier to see on the screen when I'm recording. I'm going to go ahead and give it a background color of white. We just test this straight away just to make sure that we're on the right track, and it's looking kind of like how we want. I've also got this sketch on the side here where I'm just going to be following along what's happening in the code so you can visually follow along with the thought process as well. Okay, so we've got our coordinates in there. Let's start off by making this body. Now, a lips works by figuring out what is the center point here. Give it a minute of nose. So how many pixels across in the x-coordinate space do we need to figure out what this point is? Well, if halfway is half of 600, then we know that we can start the body at 300. Then we have to figure out how far down in y-space do we need to put the body. I think about two thirds is going to be fine for this, so that would be 400. So let's go ahead and start off that. We have 300 for the x, 400 for the y, and then we have to figure out how wide and how tall the body will be. I'm just going to make a ball part guess. The beauty of code is you can always go back and change it if it's not working out the way you want it to. It looks about a third of the way across, so I'm going to put 200 here. We don't want it completely round because the odyssey is a little bit squashed, so maybe 150. Let's give it a test. That looks fine for now, so I'm just going to roll with it. Let's give them a color as well. If you go to the Tools tab, you can look at the color selector and you're able to pick any color you'd like. There's other ways of picking color, but just for this body, I'm going to pick something using the tool. This looks fine. You can type in the RGB yourself, but to save time, I'm just going to copy this hex code. We will use fill. Give it a test. That looks fine. Let's add in these feet. The feet are also going to be little ellipses. I could make them circles, but just for the sake of consistency, I'll keep it the same. Let's start by writing ellipse. Then we have to figure out what is this space here. We need to figure out what is this middle point. I'm going to use this center point as a reference because I think it's easy to work. If you're working like a symmetrical picture, working from a middle point is always good. I think it's about 50 or 60 pixels away from 300 in this direction, which would make this point here 240. Then in terms of how far up and down it is for the Y coordinate, it's probably about... It's lower than 400. Maybe let's try 500. 240. 500. Then the width and height, we can keep the same so it's a symmetrical circle. Let's just try 40 for now. That might not work. We can always change it, which is way off-center. Let's try and adjust that. I'm going to make this 60, 60 to make it bigger. Then let's decrease this to 450. Just take 50 pixels off so it moves up. Not quite right again, so let's change it a bit more. 470, move 480. I'm happy. Let's try and mirror this leg on the other side. If this leg was 60 pixels to the left of 300, then this one should be 60 pixels on the other direction, which should be 360. We'll keep the same Y coordinate, so this one's no longer 500. It's now 480. This one should also be exactly the same so that they are level. In fact, we can copy and paste this one because we're keeping the 60, 60 dimensions and the 480 is all the same. We can just change this one to 360 and we should have another leg on the other side. Perfect. The next step I want to do is these leaves. The way we're doing these leaves, because we have to use primitive shapes, is we're actually making these out of two completely separate triangles. One of them is going to go behind the body like this. Let's start off with this top triangle here and figure out what this point is. We know we want it to be in the middle. My drawing is a little bit off-center, so I'm taking me for that. We should want it dead-center in our picture, 300 pixels across. As for how far down we want it to be, we don't want it too far off the top. Probably only 100 pixels down, so I'm going to start with that. Triangle requires three sets of XY coordinates. We're going to use this point here, this point here, and this point here. If we put in our first one, we have 300, 100, then we have to figure out how far away from the centerline do we want to put this point. Because the feet were at 60, I don't want it as far as that. I'm going to probably put it about 40 pixels away from the center, which would put this point here at 260 in the X coordinate. I don't want it to be halfway across the screen, or a bit above. It's a little bit further than a third, so 250, 260, 250. This one, because we're mirroring it to the other side, if this one was 40 pixels away from the center, then this one, I want it to be 40 pixels away from the center, it should be 340. And then the same Y, because I want it to be in line in the Y direction, 340, 250. And let's give that a go. Okay, it looks right, but the colors are completely off, so let's give our triangles another color. If I go to the color selector, I can select it this way. But I'm almost certain that I know I want 255 green, just because I want Oddish to have very vibrant leaves. So again, you can copy it here, or you can just type in the RGB. There's lots of different ways of using fill, and I encourage you to experiment with them all. So let's run that. Looks fine to me. Let's draw the other triangle underneath. I'm just going to make this window a little bit wider, so we get to see all of that. Okay, so triangle. Now, to draw this one, we actually already know two of the points of this triangle. So we can get away with copying and pasting this last one, and just changing this top point to the coordinates of this bottom point here. So for this bottom point, I think the middle of the body is fine, and if it looks wrong, we can always change it, but I think the middle of the body would be a good place to put it. Now we know the middle of the body is 300, 400, so I'm going to keep that the same. So let's just copy this. I'm going to put 300, 400, and the points we know are exactly the same as the last triangle for the two sides, because we want them to meet, which they do. Now, processing actually works in layers where the first thing you code is going to be the first thing on the screen. Everything else is going to stack on top. So in order to make sure the leaf goes behind, I'm going to just copy this and put it at the beginning, just after we draw a background, but before we draw the body so that it's going to be behind the body. We also have this black line, which is separating the two triangles, and it kind of ruins the illusion a little bit, so we can actually get rid of that using something called no-stroke. No-stroke kind of works the same as stroke where you're setting a color, but it just gets rid of the color and makes it invisible, and you can always set back stroke later if it's not looking good for you. Cool. Okay, let's add in another leaf. These ones are a bit trickier, so let's figure out what this point is here. Well, we know that the one above is 340, 250, and we only want it to be maybe 10 pixels away from it, so we can make this a plus 10, plus 10, we'd get 350, 260. So let's start off that triangle. Oops, 350, 260. Okay, then we've got to figure out what is this point here, and similarly, I'm just going to refer how far away is it from this point, and I'm probably going to make it about 50 pixels away diagonally, so 50 to the right, 50 down, so that's going to give us 400, 310. Okay, and then our last point up here, I want it to be a lot more further away, definitely almost touching the edge here, so let's try 500, and we do want it to be above this 250, so maybe 230, yep, that looks fine. Okay, and then I'm going to, using the same technique, we already know what these two lines are, so when we're making this, sorry, these two points are, so when we're making this, we just have to connect it to the middle of the body, which we already know the coordinates for, and it's a fairly similar process. I can write in 300, 400, and I should note that these coordinates, as long as they're paired together, can really be in any order you like. Triangle doesn't really need a particular order aside from having xy.1, xy.2, etc. So let's have a look at that. Oh, done something wrong. I've changed the wrong coordinate. Always tricky with this stuff. Okay, 300, 400. When you've got lots of coordinates like this, it's pain in the ass to keep track of. This is why I recommend having a piece of paper to work with you, if you're making a picture like this, because I find just having a sketch to work on on the side always makes it a little bit nicer to work with. Okay, that's fine. I actually might move up this point here a little bit, because it's a little bit droopy, and that was the 500 to 30 points. I'm just going to change that to 10. Just 20 pixels up. Yeah, and it looks fine. Okay, so how do we mirror this to the other side? Well, we know that 300 here is a center, and if we're doing all the x coordinates from 300 onwards, then we just have to figure out what is that distance and apply it to this side instead. So when this one says 350, in fact, I'm just going to copy these two triangles, because that's what we're making. We're making two more triangles. So if it's 50 pixels away from 300 to the right, let's make it 50 pixels away from 300 on the left. So that would be 250. 400 is 100 away from 300 on the right. So let's change that to 200. So it's 100 away from the left, sorry, 100 away from 300, but towards the left, and the 500, 300, 300 can stay the same, because that's the middle of the body, and the 500 is 200 away, so I'm just going to change that to 100. Cool, and let's mirror it on the other side. Let's finish this off by just adding some eyes, and I'm just going to do them right at the very bottom, because we want it to appear on top. I'll change the fill color to a dark red. So it's RGB, and if it's not too much red, but blue, zero, green, I'm going to make it something like 80, zero, zero. We should get our dark red, and then we'll have two ellipses probably around the middle. So in line with the body, so it would be 400 in the y direction, but not too far away from the center, so maybe 40 pixels away from that. So 300 minus 40 is 260, 400, and then the size maybe 30, 30, and let's do it again for the right eye, where we have 340, 430, 30. Give it a go. Okay, far too dark, eyes are a little bit big. Let's change this to 140, and make these 20 pixels each, wide and tall. Okay, I'm satisfied. So there are many things you can do to improve it, obviously it's just a very simple tutorial, but I challenge you, if you do want to follow along with this, maybe try adding in some extra lines, down here to make the leaves more detailed, or maybe add like a little smile in, or chance the eyes or some shadows. There's definitely lots of ways you can learn using processing and experimenting is one of the best. So I encourage you to try out some of the things in this video you may have learnt, and look forward to the next one.