You can bold the point by using strokeWeight(int number) function, just type something like strokeWeight(5); and it will thicken all the lines and points that are drawn after that function.
For the rectangle, try using
THIS. If you use shapes, you can easily fill it with the fill(); function. But I still don't understand why exactly are you drawing that rectangle the way you are because when I run your code, there's a little black line which looks weird.
here's a version of your code written using the beginShape() function
- smooth();
- size(400,400);
- background(255);
- int x = 100;
- int y = 200;
- fill(255, 0, 0);
- stroke(255, 0, 0);
- beginShape();
- vertex(x-5, y-30);
- vertex(x+5, y-30);
- vertex(x+5, y);
- vertex(x-5, y);
- endShape();
- stroke(0);
- strokeWeight(5);
- point(x-5, y-30);
- point(x+5, y-30);
- point(x+5, y);
- point(x-5, y);