- Setup:
- Create following folder/file structure:
.
├── index.html
└── js
└── index.js
- Add the HTML starter code with the
canvas
tag (width=300
,heigth=300
)
- Create image element and add any image you want to its source. Make image appear on the canvas.
- Create button Move image, and add on click handler to move image in any direction you want when clicked on the button.
- Add some text to the canvas.