Browse Source

Specified the attributes to set for SVG lines in pick and click. (#611)

content-update
MarieMalarme 4 years ago committed by GitHub
parent
commit
e763acfb81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      subjects/pick-and-click/README.md

4
subjects/pick-and-click/README.md

@ -14,7 +14,9 @@ Write the function `pick` which turns the screen into a `hsl` color picker, vary
- the `hue` value in a `div` with the class `hue` in the top right corner of the screen
- the `luminosity` value in a `div` with the class `luminosity` in the bottom left corner of the screen
- copies that value in the clipboard on click
- displays two SVG lines, with respective ids `axisX` and `axisY`, following the cursor
- displays two SVG lines, with respective ids `axisX` and `axisY`, following the cursor like so:
- the axisX has to set the attributes `x1` and `x2` to the mouse X position
- the axisY has to set the attributes `y1` and `y2` to the mouse Y position
> Here is how a hsl value is formatted: `hsl(45, 50%, 35%)`

Loading…
Cancel
Save