This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const [holdx1, setHoldX1] = useState(0) | |
| const [holdx2, setHoldX2] = useState(0) | |
| const [pressx1, setPressX1] = useState(0) | |
| const [pressx2, setPressX2] = useState(0) | |
| function zoomData(data) { | |
| const dataZoom = data | |
| const leftPress = getIndex(Math.min(pressx1, pressx2), data) | |
| const rightPress = getIndex(Math.max(pressx1, pressx2), data) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function Col( {children, rows }) { | |
| return ( | |
| <div className = {"col-" + rows}> | |
| { children } | |
| </div> | |
| ); | |
| } | |
| return ( | |
| <> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| background(0, 0, 0); | |
| // The ground | |
| fill(255, 0, 0); | |
| rect(0, 300, 400, 100); | |
| // The sun | |
| fill(184, 51, 51); | |
| ellipse(80, 64, 100, 100); | |
| // The snowman |