Skip to content
Snippets Groups Projects
Commit a4d4f2db authored by grembem's avatar grembem
Browse files

fixed ai

fixed the deletion of the ai incorporation
parent d5ab56f8
No related branches found
No related tags found
No related merge requests found
......@@ -156,7 +156,7 @@
<virtualDirectoryDefaults allowSubDirConfig="true" />
<site name="CI-ColorWebs" id="1">
<application path="/" applicationPool="CI-ColorWebs AppPool">
<virtualDirectory path="/" physicalPath="C:\Users\Jagroop\Desktop\drexel\spring 2022\Ci 102\color-website\CI-ColorWebs" />
<virtualDirectory path="/" physicalPath="C:\Users\aidan\Documents\GitHub\color-website2\CI-ColorWebs" />
</application>
<bindings>
<binding protocol="http" bindingInformation="*:23781:localhost" />
......
......@@ -17,6 +17,14 @@
<span id="color6"></span>
<canvas width = "700"></canvas>
</h2>
<h3>
<p>View your pallete visualized through AI art:</p>
<span id="linkai"></span>
</h3>
<h8>
<p>(Keep in mind AI art is not perfect and it may take a couple of tries before you get a result you like)</p>
</h8>
</div>
......@@ -34,6 +34,9 @@ const cre = () => {
context.fillStyle = '#' +ranColor[5];
context.fillRect(460, 0, 70, 100);
document.getElementById("color6").style.color = "#" + ranColor[5];
ailink = "?prompt=flower%20color(" + ranColor[0]+",%20" + ranColor[1]+ ",%20"+ ranColor[2]+ ",%20"+ ranColor[3]+ ",%20"+ ranColor[4]+ ",%20"+ ranColor[5]+ ")%20painting";
var link = "<a href='https://www.craiyon.com/" + ailink + "'>here</a>";
document.getElementById("linkai").innerHTML=link;
}
genNew.addEventListener("click", cre);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment