-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add p5.Camera docs #5071
Add p5.Camera docs #5071
Conversation
This PR resolves the issue #5056 |
Looks good @Aloneduckling . The only thing I think would be useful is to show how the values update in the read-only properties. You can do this somewhat simply by reading the values from an orbit camera. For example: let cam;
let div;
function setup() {
createCanvas(100, 100, WEBGL);
cam = createCamera();
div = createDiv();
div.position(0, 0);
div.style('color', 'white');
}
function draw() {
background(0);
orbitControl();
box(10);
div.html('centerZ = ' + cam.centerZ);
} |
@stalgiag, I have made the changes. |
Great! Thank you. @all-contributors please add @Aloneduckling for documentation |
I've put up a pull request to add @Aloneduckling! 🎉 |
@Aloneduckling @stalgiag – just hit a hiccup while loading the latest |
Resolves #5056
Changes:
Added info about p5.Camera object properties(
eyeX,Y,Z centerX,Y,Z upX,Y,Z
)Screenshots of the change:
PR Checklist
npm run lint
passes