Switch the order of the bonuses
This commit is contained in:
parent
0e30df2147
commit
d4ec26fcea
@ -27,14 +27,14 @@ Here's a development workflow that we recommend you use.
|
|||||||
|
|
||||||
### Bonus 1
|
### Bonus 1
|
||||||
|
|
||||||
Add a color picker which allows the user to select any brush color using the [`<input type="color">` tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color) and the [`change` event](https://developer.mozilla.org/en-US/docs/Web/Events/change).
|
|
||||||
|
|
||||||
### Bonus 2
|
|
||||||
|
|
||||||
Improve the mouse so it behaves like a real paintbrush. In other words, allow the user to paint by clicking and dragging across the canvas. For this, you'll need a combination of the `mousedown`, `mouseenter`, and `mouseup` events.
|
Improve the mouse so it behaves like a real paintbrush. In other words, allow the user to paint by clicking and dragging across the canvas. For this, you'll need a combination of the `mousedown`, `mouseenter`, and `mouseup` events.
|
||||||
|
|
||||||
**TIP:** The [`mouseenter` event](https://developer.mozilla.org/en-US/docs/Web/Events/mouseenter) doesn't bubble to up the DOM tree.
|
**TIP:** The [`mouseenter` event](https://developer.mozilla.org/en-US/docs/Web/Events/mouseenter) doesn't bubble to up the DOM tree.
|
||||||
|
|
||||||
|
### Bonus 2
|
||||||
|
|
||||||
|
Add a color picker which allows the user to select any brush color using the [`<input type="color">` tag](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/color) and the [`change` event](https://developer.mozilla.org/en-US/docs/Web/Events/change).
|
||||||
|
|
||||||
### Deployment
|
### Deployment
|
||||||
|
|
||||||
Review the following articles on the Surge platform and then deploy your website to production.
|
Review the following articles on the Surge platform and then deploy your website to production.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user