Ask Your Question
3

What is the correct position for the initial size of an HTML5 Canvas and its drawing?

asked 2022-12-14 11:00:00 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-01-31 02:00:00 +0000

qstack gravatar image

The initial size of an HTML5 Canvas should be set using CSS or JavaScript. The correct position and size for the canvas depends on the specific layout of the webpage and the desired placement of the canvas within that layout. The drawing on the canvas should be done using the canvas context and appropriate commands such as drawRect, fill, and stroke. The position and dimensions of each drawing element should be calculated and specified explicitly in the code.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-12-14 11:00:00 +0000

Seen: 7 times

Last updated: Jan 31 '22