-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # Cool
- Loading branch information
Showing
21 changed files
with
1,391 additions
and
173 deletions.
There are no files selected for viewing
Submodule Cool
updated
5 files
+1 −1 | lib/imgui_gradient | |
+16 −6 | res/shaders/color_conversions.glsl | |
+5 −1 | src/Cool/ColorSpaces/_ReadMe.md | |
+2 −2 | src/Cool/ColorSpaces/conversions.cpp | |
+20 −4 | src/Cool/InputParser/InputParser.cpp |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// To learn how to write nodes, see https://coollab-art.com/Tutorials/Writing%20Nodes/Intro | ||
|
||
INPUT Oklab 'Color2'; | ||
INPUT float 'Percent'; | ||
|
||
Oklab main(Oklab Color1) | ||
{ | ||
return mix(Color1, 'Color2', 'Percent'); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"Presets": { | ||
"Underlying container": [ | ||
{ | ||
"first": "92f7e19a-fc1c-49b8-8135-130c88229e1c", | ||
"second": { | ||
"Name": "Default", | ||
"Values": [ | ||
{ | ||
"index": 7, | ||
"data": { | ||
"Name": "Color2", | ||
"Value": { | ||
"sRGB": { | ||
"x": 1.0, | ||
"y": 0.9998999834060669, | ||
"z": 0.9998999834060669 | ||
} | ||
}, | ||
"Metadata": { | ||
"Is HDR": false | ||
}, | ||
"Default Value": { | ||
"sRGB": { | ||
"x": 1.0, | ||
"y": 0.9998999834060669, | ||
"z": 0.9998999834060669 | ||
} | ||
}, | ||
"Default Metadata": { | ||
"Is HDR": false | ||
} | ||
} | ||
}, | ||
{ | ||
"index": 2, | ||
"data": { | ||
"Name": "Percent", | ||
"Value": 0.5, | ||
"Metadata": { | ||
"Bounds": { | ||
"Has min bound": false, | ||
"Min": 0.0, | ||
"Has max bound": false, | ||
"Max": 1.0, | ||
"Drag speed": 0.009999999776482582, | ||
"Use slider": true | ||
} | ||
}, | ||
"Default Value": 0.5, | ||
"Default Metadata": { | ||
"Bounds": { | ||
"Has min bound": false, | ||
"Min": 0.0, | ||
"Has max bound": false, | ||
"Max": 1.0, | ||
"Drag speed": 0.009999999776482582, | ||
"Use slider": false | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// To learn how to write nodes, see https://coollab-art.com/Tutorials/Writing%20Nodes/Intro | ||
|
||
INPUT sRGB 'Color2'; | ||
INPUT float 'Percent'; | ||
|
||
sRGB main(sRGB Color1) | ||
{ | ||
return mixbox_lerp(Color1, 'Color2', 'Percent'); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,68 @@ | ||
{ | ||
"Presets": { | ||
"Underlying container": [ | ||
{ | ||
"first": "49fbfa3e-7018-44e3-847c-ea57da42f4f0", | ||
"second": { | ||
"Name": "Default", | ||
"Values": [ | ||
{ | ||
"index": 7, | ||
"data": { | ||
"Name": "Color2", | ||
"Value": { | ||
"sRGB": { | ||
"x": 1.0, | ||
"y": 0.9998999834060669, | ||
"z": 0.9998999834060669 | ||
} | ||
}, | ||
"Metadata": { | ||
"Is HDR": false | ||
}, | ||
"Default Value": { | ||
"sRGB": { | ||
"x": 1.0, | ||
"y": 0.9998999834060669, | ||
"z": 0.9998999834060669 | ||
} | ||
}, | ||
"Default Metadata": { | ||
"Is HDR": false | ||
} | ||
} | ||
}, | ||
{ | ||
"index": 2, | ||
"data": { | ||
"Name": "Percent", | ||
"Value": 0.5, | ||
"Metadata": { | ||
"Bounds": { | ||
"Has min bound": true, | ||
"Min": 0.0, | ||
"Has max bound": true, | ||
"Max": 1.0, | ||
"Drag speed": 0.009999999776482582, | ||
"Use slider": true | ||
} | ||
}, | ||
"Default Value": 0.5, | ||
"Default Metadata": { | ||
"Bounds": { | ||
"Has min bound": false, | ||
"Min": 0.0, | ||
"Has max bound": false, | ||
"Max": 1.0, | ||
"Drag speed": 0.009999999776482582, | ||
"Use slider": false | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// To learn how to write nodes, see https://coollab-art.com/Tutorials/Writing%20Nodes/Intro | ||
|
||
INPUT sRGB_PremultipliedA 'Background'; | ||
|
||
sRGB_PremultipliedA main(sRGB_PremultipliedA Foreground) | ||
{ | ||
float new_alpha = Foreground.a + (1. - Foreground.a) * 'Background'.a; | ||
return vec4( | ||
premultiply( | ||
mixbox_lerp( | ||
unpremultiply('Background'.rgb, 'Background'.a), | ||
unpremultiply(Foreground.rgb, Foreground.a), | ||
Foreground.a | ||
), | ||
new_alpha | ||
), | ||
new_alpha | ||
); | ||
} |
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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"Presets": { | ||
"Underlying container": [ | ||
{ | ||
"first": "2fec6af0-2106-498f-930e-94811d87bdbe", | ||
"second": { | ||
"Name": "Default", | ||
"Values": [ | ||
{ | ||
"index": 8, | ||
"data": { | ||
"Name": "Background", | ||
"Value": { | ||
"sRGB, Straight alpha": { | ||
"x": 0.0, | ||
"y": 0.0, | ||
"z": 0.0, | ||
"w": 1.0 | ||
} | ||
}, | ||
"Metadata": { | ||
"Is HDR": false | ||
}, | ||
"Default Value": { | ||
"sRGB, Straight alpha": { | ||
"x": 0.0, | ||
"y": 0.0, | ||
"z": 0.0, | ||
"w": 1.0 | ||
} | ||
}, | ||
"Default Metadata": { | ||
"Is HDR": false | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} |
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
Oops, something went wrong.