RGB Values
They go over RGB values, this is three different 255 values that when mixed together would basically make a given color. The theory behind this is the different LED lights in the computer screen. Basically, the 255 is an 8 bit or one byte character type called char and this is then used to represent the different values of colors
For each of these given single LED lights, at least in a given configuration, we can basically combine these three different character values in order to mix and match colors. The same values like 100, 100, 100 for the RGB will make a gray color. The different values all go in the RGB color, so you have something like 255, 0, 0 for pure red and so on and so forth, mixing these colors you can make about 16 million different color combinations This makes sense if you think about it, 3 bytes of information is 255 255 255 which gets some odd 16 million
Fill, stroke, No-fill
Basically just the different cosmetic values that they have for this standard P 5. js library, it basically is just the bullshit css styling that you would have. You can basically just change the color of each of the given items, you can change the inner color, the inner fill, the weight of a given value, and all of that.
It is not too crazy important or anything like that, it’s just a bunch of the basic shit that exists using the library.
The below is an example of how you can draw different shapes inside of the p5.js library
For a circle the middle point is the first two arguments, and then next two are the length and width, a line just takes an x1, y1, x2, y2, for the rectangle you have the x1, y1, width, height as being drawn from the top left corner of the screen. You then lastly have the triangle which takes in a x1, y1, x2, y2, x3, y3 as the given coordinates
Debugging and the Console
You basically just use the web console in order to see what the fuck your output was, it’s the console, this is not rocket science, it’s pretty simple in all honesty. It has different outputs, based on whatever different prints you have, whatever stack trace happened, and basically what was up. I really think that the more abstracted out that you get into programming the less useful that errors become, because you kind of eventually just end up using the tool wrong, and it doesn’t exactly tell you how you used it wrong, sort of, but it kind of just tells you what went wrong in the abstracted function so you kind of don’t have the context, but its whatever really.
He also goes for the different types of errors, like syntax errors, some type errors or some shit, some logic errors, runtime, all of that good stuff pretty much.
