Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Color Website
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jagroop Gill
Color Website
Commits
d5ba2ec7
Commit
d5ba2ec7
authored
2 years ago
by
grembem
Browse files
Options
Downloads
Patches
Plain Diff
True palette AI integration
ported over the AI art to the true palette page
parent
4ee6ecf2
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.idea/config/applicationhost.config
+1
-1
1 addition, 1 deletion
.idea/config/applicationhost.config
CI-ColorWebs/Pages/TruePalette.cshtml
+7
-0
7 additions, 0 deletions
CI-ColorWebs/Pages/TruePalette.cshtml
CI-ColorWebs/wwwroot/js/truepalette.js
+3
-0
3 additions, 0 deletions
CI-ColorWebs/wwwroot/js/truepalette.js
with
11 additions
and
1 deletion
.idea/config/applicationhost.config
+
1
−
1
View file @
d5ba2ec7
...
@@ -156,7 +156,7 @@
...
@@ -156,7 +156,7 @@
<
virtualDirectoryDefaults
allowSubDirConfig
=
"true"
/>
<
virtualDirectoryDefaults
allowSubDirConfig
=
"true"
/>
<
site
name
=
"CI-ColorWebs"
id
=
"1"
>
<
site
name
=
"CI-ColorWebs"
id
=
"1"
>
<
application
path
=
"/"
applicationPool
=
"CI-ColorWebs AppPool"
>
<
application
path
=
"/"
applicationPool
=
"CI-ColorWebs AppPool"
>
<
virtualDirectory
path
=
"/"
physicalPath
=
"C:\Users\aidan\Documents\GitHub\color-website2\CI-ColorWebs"
/>
<
virtualDirectory
path
=
"/"
physicalPath
=
"C:\Users\aidan\
OneDrive\
Documents\GitHub\color-website2\CI-ColorWebs"
/>
</
application
>
</
application
>
<
bindings
>
<
bindings
>
<
binding
protocol
=
"http"
bindingInformation
=
"*:23781:localhost"
/>
<
binding
protocol
=
"http"
bindingInformation
=
"*:23781:localhost"
/>
...
...
This diff is collapsed.
Click to expand it.
CI-ColorWebs/Pages/TruePalette.cshtml
+
7
−
0
View file @
d5ba2ec7
...
@@ -23,5 +23,12 @@
...
@@ -23,5 +23,12 @@
<span
id=
"palColor6"
></span>
<span
id=
"palColor6"
></span>
<canvas
width =
"700"
></canvas>
<canvas
width =
"700"
></canvas>
</h2>
</h2>
<h3>
<p>
View your pallete visualized through AI art:
</p>
<span
id=
"Tlinkai"
></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>
</div>
<script
src =
'./js/truepalette.js'
></script>
<script
src =
'./js/truepalette.js'
></script>
This diff is collapsed.
Click to expand it.
CI-ColorWebs/wwwroot/js/truepalette.js
+
3
−
0
View file @
d5ba2ec7
...
@@ -90,6 +90,9 @@ const bre = () => {
...
@@ -90,6 +90,9 @@ const bre = () => {
context
.
fillStyle
=
leColor
[
5
];
context
.
fillStyle
=
leColor
[
5
];
context
.
fillRect
(
580
,
0
,
116
,
150
);
context
.
fillRect
(
580
,
0
,
116
,
150
);
document
.
getElementById
(
"
palColor6
"
).
style
.
color
=
leColor
[
5
];
document
.
getElementById
(
"
palColor6
"
).
style
.
color
=
leColor
[
5
];
Tailink
=
"
?prompt=flower%20color(
"
+
leColor
[
0
].
replace
(
/^#+/
,
''
)
+
"
,%20
"
+
leColor
[
1
].
replace
(
/^#+/
,
''
)
+
"
,%20
"
+
leColor
[
2
].
replace
(
/^#+/
,
''
)
+
"
,%20
"
+
leColor
[
3
].
replace
(
/^#+/
,
''
)
+
"
,%20
"
+
leColor
[
4
].
replace
(
/^#+/
,
''
)
+
"
,%20
"
+
leColor
[
5
].
replace
(
/^#+/
,
''
)
+
"
)%20painting
"
;
var
Tlink
=
"
<a href='https://www.craiyon.com/
"
+
Tailink
+
"
' target='_blank'>here</a>
"
;
document
.
getElementById
(
"
Tlinkai
"
).
innerHTML
=
Tlink
;
}
}
document
.
getElementById
(
"
gsetNew
"
).
addEventListener
(
"
click
"
,
bre
);
document
.
getElementById
(
"
gsetNew
"
).
addEventListener
(
"
click
"
,
bre
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment