I have the code in my html file:
<p><canvas id="canvas1" width="1000" height="200"></canvas></p>
but changing the width and height doesn’t affect the canvas size at all. Why is this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can define a canvas’ dimensions in both css and javascript as well.
The documentation for Processing.js shows a function named setup():
http://processingjs.org/reference/size_/
Find where your script is calling that and set your own values.