Skip to content

Commit

Permalink
added gp.html and Author credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
MUmarShahbaz committed Sep 1, 2024
1 parent 945ad77 commit 5533da5
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 1 deletion.
94 changes: 94 additions & 0 deletions graph-plotter.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Graph Plotter</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f0f0f0;
color: #333;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
padding: 30px;
max-width: 800px;
text-align: center;
}
.container h1 {
font-size: 2.5rem;
color: #007acc;
margin-bottom: 15px;
}
.container h2 {
font-size: 1.7rem;
color: #555;
margin-bottom: 15px;
}
.container h3 {
font-size: 1.2rem;
color: #555;
margin-bottom: 15px;
}
.container p {
font-size: 1.2rem;
line-height: 1.6;
margin-bottom: 20px;
}
.buttons {
display: flex;
justify-content: center;
margin-top: 20px;
}
.button {
background-color: #007acc;
color: white;
border: none;
border-radius: 5px;
padding: 10px 20px;
margin: 5px;
cursor: pointer;
font-size: 1rem;
transition: background-color 0.3s ease;
}
.button:hover {
background-color: #005f99;
}
.BigFont {
font-size: 1.4rem;
}
@media (max-height: 650px) {
body {
align-items: flex-start;
padding-top: 20px;
}
.container {
position: static;
margin: 0 auto;
}
}
</style>
</head>
<body>
<div class="container">
<h1>Graph Plotter</h1>
<h2>Processing Library</h2>
<h3>Author: M. Umar Shahbaz</h3>
<p>This is a GitHub repository containing a custom library for Processing IDE that draws graphs.</p>
<p>To use this library locally you first need to download <a href="https://processing.org/download" style="color:#007acc; text-decoration:none;">Processing IDE</a>. Then you can follow the instructions in the README.md of the GitHub repository to run it as you please. The library is highly customizable and easy to use, you only need to import the <code>GP_unit.pde</code> in your sketch.</p>
<p><strong>Note: In the examples folder there is a sketch to draw a graph from a serial port called <code>Serial graph</code>.</strong></p>

<div class="buttons">
<button class="button" onclick="window.location.href='https://github.com/KingHowler/Graph-Plotter'">Continue</button>
</div>
</div>
</body>
</html>
8 changes: 7 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@
color: #007acc;
margin-bottom: 15px;
}
.container h3 {
font-size: 1.2rem;
color: #555;
margin-bottom: 15px;
}
.container p {
font-size: 1.2rem;
line-height: 1.6;
Expand Down Expand Up @@ -78,6 +83,7 @@
<body>
<div class="container">
<h1>Oscilloscope Online</h1>
<h3>Author: M. Umar Shahbaz</h3>
<p>An online oscilloscope made by using <strong>p5.js</strong> by <strong>Processing.org</strong>.</p>
<p>The oscilloscope works by taking input from a serial graph and plotting it.</p>
<p>The input must be in the format: <br> <strong>a9b9c9d9</strong></p>
Expand All @@ -90,7 +96,7 @@ <h1>Oscilloscope Online</h1>
<path fill="#ffffff" d="M12.5.75C6.146.75 1 5.896 1 12.25c0 5.089 3.292 9.387 7.863 10.91.575.101.79-.244.79-.546 0-.273-.014-1.178-.014-2.142-2.889.532-3.636-.704-3.866-1.35-.13-.331-.69-1.352-1.18-1.625-.402-.216-.977-.748-.014-.762.906-.014 1.553.834 1.769 1.179 1.035 1.74 2.688 1.25 3.349.948.1-.747.402-1.25.733-1.538-2.559-.287-5.232-1.279-5.232-5.678 0-1.25.445-2.285 1.178-3.09-.115-.288-.517-1.467.115-3.048 0 0 .963-.302 3.163 1.179.92-.259 1.897-.388 2.875-.388.977 0 1.955.13 2.875.388 2.2-1.495 3.162-1.179 3.162-1.179.633 1.581.23 2.76.115 3.048.733.805 1.179 1.825 1.179 3.09 0 4.413-2.688 5.39-5.247 5.678.417.36.776 1.05.776 2.128 0 1.538-.014 2.774-.014 3.162 0 .302.216.662.79.547C20.709 21.637 24 17.324 24 12.25 24 5.896 18.854.75 12.5.75Z"></path>
</svg>
</button>
<button class="button code" onclick="window.location.href = 'https://github.com/KingHowler/Graph-Plotter'"><span class="BigFont">&lt;/&gt;</span> Use Oscilloscope Locally</button>
<button class="button code" onclick="window.location.href = 'graph-plotter.html'"><span class="BigFont">&lt;/&gt;</span> Use Oscilloscope Locally</button>
</div>
</div>
</body>
Expand Down

0 comments on commit 5533da5

Please sign in to comment.