We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
shared-canvas/jarquevious1.js
Line 2 in e393e3c
Calculate the x and y position using size:
const x = 2 * size const y = 1 * size
Add this to the top.
Now use the x and y values to draw your shapes.
For example around line 7 you have:
ctx.rect(200, 100, 250, 75)
This can now be:
ctx.rect(x, y, 250, 75) // use x and y here
Notice the size here is too wide you need to keep your drawing inside the size. Size is 113. So you could use any of these:
ctx.rect(x, y, size, 75) // width is max size height is 75 less than size so its okay // or ctx.rect(x, y, size, size / 2) // height is half size
The text was updated successfully, but these errors were encountered:
No branches or pull requests
shared-canvas/jarquevious1.js
Line 2 in e393e3c
Calculate the x and y position using size:
Add this to the top.
Now use the x and y values to draw your shapes.
For example around line 7 you have:
This can now be:
Notice the size here is too wide you need to keep your drawing inside the size. Size is 113. So you could use any of these:
The text was updated successfully, but these errors were encountered: