This project builds on the "Guess The Line" concept on the r/desmos subreddit, where users try to guess a hidden graph based on its equation and webgoatguy's YouTube video.
This project will be submitted to Hack Club's Midnight hackathon. If you're a teen interested in coding, check out Hack Club!
- Edit the
/src/data/graphs.tsfile here. - Add your desired graph equation in the format
f(x)=...on a new line. - Make sure to follow the existing formatting and conventions in the file. I'll write a formatting guide soon.
- Attach a screenshot of the graph plotted on Desmos for reference.
- Submit a pull request with your changes.
- Use
f(x)=...format for defining functions. - Use '\' for escaping
cos,sin,tan, etc. (e.g.,\\cos(x)). - Use '\left|' and '\right|' or
\\operatorname{abs}()for absolute values (e.g.,\\left|x\\right|,\\operatorname{abs}(x)). The latter notation is highly recommended. - Be generous in your use of spaces for clarity.
- Ensure the function is compatible with Desmos syntax.
npm installnpm run devnpm run buildLint with ESLint
npm run lint