Skip to content

Commit

Permalink
Add author and license information
Browse files Browse the repository at this point in the history
  • Loading branch information
RolandR committed Mar 17, 2017
1 parent 2570bd2 commit 54f8186
Show file tree
Hide file tree
Showing 13 changed files with 1,054 additions and 27 deletions.
30 changes: 29 additions & 1 deletion _css/generic.css
@@ -1,3 +1,31 @@

/*
========================================================================
Color Blindness Tools
A collection of tools for simulating and providing assistance
with various forms of color vision deficiency.
Copyright (C) 2017 Roland Rytz <roland@draemm.li>
Licensed under the GNU Affero General Public License Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For more information, see:
https://draemm.li/various/colorVision/license.txt
========================================================================
*/


/*
Generic styling for things like buttons, input elements and
stuff like that.
Expand All @@ -20,7 +48,7 @@ h2{
}

p{
margin-bottom: 15px;
margin-bottom: 5px;
}

textarea,
Expand Down
27 changes: 27 additions & 0 deletions _css/overlay.css
@@ -1,3 +1,30 @@

/*
========================================================================
Color Blindness Tools
A collection of tools for simulating and providing assistance
with various forms of color vision deficiency.
Copyright (C) 2017 Roland Rytz <roland@draemm.li>
Licensed under the GNU Affero General Public License Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For more information, see:
https://draemm.li/various/colorVision/license.txt
========================================================================
*/

#overlay{
position: absolute;
z-index: 10000;
Expand Down
37 changes: 36 additions & 1 deletion _css/style.css
@@ -1,4 +1,30 @@

/*
========================================================================
Color Blindness Tools
A collection of tools for simulating and providing assistance
with various forms of color vision deficiency.
Copyright (C) 2017 Roland Rytz <roland@draemm.li>
Licensed under the GNU Affero General Public License Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For more information, see:
https://draemm.li/various/colorVision/license.txt
========================================================================
*/

@import url(openSansFont/OpenSans.css);
@import url(generic.css);
@import url(tabs.css);
Expand All @@ -19,7 +45,7 @@ h1{
font-weight: 200;
font-size: 25px;
text-shadow: 1px 1px #000000;

color: #FFFFFF;
}

a{
Expand Down Expand Up @@ -53,6 +79,15 @@ a:hover{
flex-grow: 1;
}

footer{
text-align: left;
padding: 0px 10px 2px 10px;
}

small{
font-size: 14px;
}

#openImage{
font-size: 17px;
font-weight: 200;
Expand Down
43 changes: 35 additions & 8 deletions _css/tabs.css
@@ -1,4 +1,30 @@

/*
========================================================================
Color Blindness Tools
A collection of tools for simulating and providing assistance
with various forms of color vision deficiency.
Copyright (C) 2017 Roland Rytz <roland@draemm.li>
Licensed under the GNU Affero General Public License Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For more information, see:
https://draemm.li/various/colorVision/license.txt
========================================================================
*/

.tabsContainer{
background-color: #666666;
text-align: left;
Expand Down Expand Up @@ -32,12 +58,12 @@
flex-basis: 0;
}

.tabsContainer > nav > label > span{
.tabsContainer > nav > label > h2{
display: block;
width: 100%;
height: 100%;
font-size: 17px;
font-weight: 200;
font-size: 19px;
font-weight: 300;
text-align: center;
background-color: #555555;
background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
Expand All @@ -46,13 +72,14 @@
box-sizing: border-box;
border: 1px #000000 solid;
border-width: 0px 0px 1px 0px;
margin: 0px;
}

.tabsContainer > nav > label > span:hover{
.tabsContainer > nav > label > h2:hover{
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.1));
}

.tabsContainer > nav > label > input:checked ~ span:hover{
.tabsContainer > nav > label > input:checked ~ h2:hover{
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
}

Expand All @@ -65,20 +92,20 @@
text-align: center;
}

.tabsContainer > nav > label > input:checked ~ span{
.tabsContainer > nav > label > input:checked ~ h2{
background-color: #666666;
background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
border-width: 1px 1px 0px 1px;
text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.6);
padding-top: 6px;
}

.tabsContainer > nav > label:first-child > input:checked ~ span{
.tabsContainer > nav > label:first-child > input:checked ~ h2{
border-width: 1px 1px 0px 0px;
padding-left: 1px;
}

.tabsContainer > nav > label:last-child > input:checked ~ span{
.tabsContainer > nav > label:last-child > input:checked ~ h2{
border-width: 1px 0px 0px 1px;
padding-right: 1px;
}
Expand Down
41 changes: 41 additions & 0 deletions _js/colorTransforms.js
@@ -1,3 +1,44 @@

/*
========================================================================
Color Blindness Tools
A collection of tools for simulating and providing assistance
with various forms of color vision deficiency.
Copyright (C) 2017 Roland Rytz <roland@draemm.li>
Licensed under the GNU Affero General Public License Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For more information, see:
https://draemm.li/various/colorVision/license.txt
========================================================================
*/

/*
Source for the transformation matrices below:
Leandro A. F. Fernandes, Manuel M. Oliveira, Gustavo M. Machado,
"A Physiologically-based Model for Simulation of Color Vision Deficiency",
IEEE Transactions on Visualization & Computer Graphics,
vol. 15, no. , pp. 1291-1298,
November/December 2009,
doi:10.1109/TVCG.2009.113
*/


var colorTransforms = {
protan: [
[
Expand Down
28 changes: 28 additions & 0 deletions _js/dyschro.js
@@ -1,3 +1,31 @@

/*
========================================================================
Color Blindness Tools
A collection of tools for simulating and providing assistance
with various forms of color vision deficiency.
Copyright (C) 2017 Roland Rytz <roland@draemm.li>
Licensed under the GNU Affero General Public License Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For more information, see:
https://draemm.li/various/colorVision/license.txt
========================================================================
*/


var image = new Image();
var imageElement = document.getElementById("image");
var imageContainer = document.getElementById("imageContainer");
Expand Down
27 changes: 27 additions & 0 deletions _js/settings.js
@@ -1,4 +1,31 @@

/*
========================================================================
Color Blindness Tools
A collection of tools for simulating and providing assistance
with various forms of color vision deficiency.
Copyright (C) 2017 Roland Rytz <roland@draemm.li>
Licensed under the GNU Affero General Public License Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For more information, see:
https://draemm.li/various/colorVision/license.txt
========================================================================
*/


var settings = {
tab: "simulate"
,mode: "protan"
Expand Down
28 changes: 28 additions & 0 deletions _js/tabs.js
@@ -1,3 +1,31 @@

/*
========================================================================
Color Blindness Tools
A collection of tools for simulating and providing assistance
with various forms of color vision deficiency.
Copyright (C) 2017 Roland Rytz <roland@draemm.li>
Licensed under the GNU Affero General Public License Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For more information, see:
https://draemm.li/various/colorVision/license.txt
========================================================================
*/


var settingsTabs = new Tabs("settingsTabs");

function Tabs(tabsContainerId){
Expand Down
28 changes: 28 additions & 0 deletions _js/webgl/fragmentshader.js
@@ -1,3 +1,31 @@

/*
========================================================================
Color Blindness Tools
A collection of tools for simulating and providing assistance
with various forms of color vision deficiency.
Copyright (C) 2017 Roland Rytz <roland@draemm.li>
Licensed under the GNU Affero General Public License Version 3
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
For more information, see:
https://draemm.li/various/colorVision/license.txt
========================================================================
*/


var fragmentShader = `
precision mediump float;
Expand Down

0 comments on commit 54f8186

Please sign in to comment.