-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
7 additions
and
7 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Strandify: easy string art!</title><script defer="defer" src="index.js"></script></head><body><div class="header"><h1>Strandify</h1><div class="links"><a href="https://docs.rs/strandify">Documentation</a> <a href="https://github.com/loiccoyle/strandify">Github</a></div></div><div class="columns"><div><div class="image-upload"><input type="file" id="imageUpload" accept="image/*"/> <button id="removeImage">🗙</button></div><div class="controls"><label for="brushType">Peg shape:</label> <select id="brushType"><option value="circle">Circle</option><option value="line">Line</option><option value="box">Box</option><option value="single">Single Peg</option><option value="eraser">Box Erase</option></select> <label for="pegCount">Peg Count:</label> <input type="number" id="pegCount" min="2" value="400" step="50"/> <button id="clearBtn">Clear Pegs</button></div><canvas id="canvas" width="600" height="600"></canvas></div><div class="config-container"><div class="config-section"><h2>Pather Configuration</h2><div class="form-group"><label for="iterations">Iterations:</label> <input type="number" id="iterations" min="1" value="4000" step="500"/></div><div class="form-group"><label for="skipPegWithin">Skip Peg Within:</label> <input type="number" id="skipPegWithin" min="0" value="10"/></div><div class="form-group"><label for="beamWidth">Beam Search Width:</label> <input type="number" id="beamWidth" min="1" value="1"/></div><div class="form-group"><label for="patherYarnWidth">Width:</label> <input type="number" id="patherYarnWidth" min="0.1" step="0.1" value="1"/></div><div class="form-group"><label for="patherYarnOpacity">Opacity:</label> <input type="number" id="patherYarnOpacity" min="0" max="1" step="0.1" value="0.2"/></div></div><div class="config-section"><h2>Early Stop Configuration</h2><div class="form-group"><label for="lossThreshold">Loss Threshold:</label> <input type="number" id="lossThreshold" step="0.01"/></div><div class="form-group"><label for="maxCount">Max Count:</label> <input type="number" id="maxCount" min="1" value="1000"/></div></div><div class="config-section"><h2>Yarn Configuration</h2><div class="form-group"><label for="yarnWidth">Width:</label> <input type="number" id="yarnWidth" min="0.1" step="0.1" value="1"/></div><div class="form-group"><label for="yarnOpacity">Opacity:</label> <input type="number" id="yarnOpacity" min="0" max="1" step="0.1" value="0.2"/></div><div class="form-group"><label for="yarnColor">Color:</label> <input type="color" id="yarnColor" value="#000000"/></div></div><button id="run" type="button" disabled="disabled">String Art!</button></div><div id="svg-container"></div></div></body></html> | ||
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Strandify: easy string art!</title><script defer="defer" src="index.js"></script></head><body><div class="header"><h1>Strandify</h1><div class="links"><a href="https://docs.rs/strandify">Documentation</a> <a href="https://github.com/loiccoyle/strandify">Github</a></div></div><div class="columns"><div><div class="image-upload"><input type="file" id="imageUpload" accept="image/*"/> <button id="removeImage">🗙</button></div><div class="controls"><label for="brushType">Peg shape:</label> <select id="brushType"><option value="circle">Circle</option><option value="line">Line</option><option value="box">Box</option><option value="single">Single Peg</option><option value="eraser">Box Erase</option></select> <label for="pegCount">Peg Count:</label> <input type="number" id="pegCount" min="2" value="400" step="50"/> <button id="clearBtn">Clear Pegs</button></div><canvas id="canvas" width="600" height="600"></canvas></div><div class="config-container"><div class="config-section"><h2>Pather Configuration</h2><div class="form-group"><label for="iterations">Iterations:</label> <input type="number" id="iterations" min="1" value="4000" step="500"/></div><div class="form-group"><label for="skipPegWithin">Skip Peg Within:</label> <input type="number" id="skipPegWithin" min="0" value="10"/></div><div class="form-group"><label for="beamWidth">Beam Search Width:</label> <input type="number" id="beamWidth" min="1" value="1"/></div><div class="form-group"><label for="patherYarnWidth">Width:</label> <input type="number" id="patherYarnWidth" min="0" step="1" value="1"/></div><div class="form-group"><label for="patherYarnOpacity">Opacity:</label> <input type="number" id="patherYarnOpacity" min="0" max="1" step="0.1" value="0.2"/></div></div><div class="config-section"><h2>Early Stop Configuration</h2><div class="form-group"><label for="lossThreshold">Loss Threshold:</label> <input type="number" id="lossThreshold" step="0.01" min="0" max="1"/></div><div class="form-group"><label for="maxCount">Max Count:</label> <input type="number" id="maxCount" min="1" value="1000"/></div></div><div class="config-section"><h2>Yarn Configuration</h2><div class="form-group"><label for="yarnWidth">Width:</label> <input type="number" id="yarnWidth" min="0.1" step="0.1" value="1"/></div><div class="form-group"><label for="yarnOpacity">Opacity:</label> <input type="number" id="yarnOpacity" min="0" max="1" step="0.1" value="0.2"/></div><div class="form-group"><label for="yarnColor">Color:</label> <input type="color" id="yarnColor" value="#000000"/></div></div><button id="run" type="button" disabled="disabled">String Art!</button></div><div id="svg-container"></div></div></body></html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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