Hello @crv74,
Yes. You can use stroke(), fill(), texture()…
Code below will center and rotate grid in previous post.
Code < Click here!
void setup()
{
size(400, 400, P3D);
//ortho();
}
void draw()
{
background(0);
strokeWeight(2);
noFill();
line(0, height/2, width, height/2);
float angle = frameCount*TAU/360;
translate(0, height/2, -200);
rotateX(angle);
translate(0, -height/2);
stroke(255, 255, 0);
rect(50, 50, width-100, height-100);
}
These questions are explored in many topics throughout the forum.
Simple example I wrote a while back:
https://discourse.processing.org/t/3d-mesh-of-sine-waves-from-coding-challenge/22806
An advanced example:
https://discourse.processing.org/t/triangle-strip-lighting-problem/38348/10
A p5.js example:
Many more examples in the forum as well. Many more!
I encourage use to peruse the forum and bookmark the useful posts.
Deep waters! But they can be navigated.
Lots of resources here:
:)