summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2d67046)
raw | patch | inline | side by side (parent: 2d67046)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 23 May 2006 21:42:32 +0000 (21:42 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Tue, 23 May 2006 21:42:32 +0000 (21:42 +0000) |
share/palettes/Makefile.am | patch | blob | history | |
share/palettes/PaletteGen.py | [new file with mode: 0644] | patch | blob |
share/palettes/inkscape.gpl | [new file with mode: 0644] | patch | blob |
index d6b34215d16574c53a08f4307e8c7aa39bce7985..ae39499fc109cc3fe38eedae341db77d9e56a989 100644 (file)
palettes_DATA = \
README \
+ inkscape.gpl \
Tango-Palette.gpl \
svg.gpl \
webhex.gpl \
diff --git a/share/palettes/PaletteGen.py b/share/palettes/PaletteGen.py
--- /dev/null
@@ -0,0 +1,83 @@
+import colorsys\r
+\r
+print '''GIMP Palette\r
+Name: Inkscape default\r
+Columns: 3\r
+# generated by PaletteGen.py'''\r
+\r
+\r
+# grays\r
+\r
+g_steps = 10\r
+g_step_size = 1.0 / g_steps\r
+\r
+for i in range(0, g_steps + 1):\r
+ level = i * g_step_size\r
+ r, g, b = colorsys.hls_to_rgb(0, level, 0)\r
+ \r
+ rval = int(round(r * 255))\r
+ gval = int(round(g * 255))\r
+ bval = int(round(b * 255))\r
+ \r
+ if i == 0:\r
+ line = "%3s %3s %3s Black" % (rval, gval, bval)\r
+ elif i == g_steps:\r
+ line = "%3s %3s %3s White" % (rval, gval, bval)\r
+ else:\r
+ line = "%3s %3s %3s %s%% Gray" % (rval, gval, bval, 100 - int(level * 100))\r
+ print line\r
+\r
+ # add two more steps near white\r
+ if i == g_steps - 1:\r
+ level_m = level + 0.5 * g_step_size\r
+ r, g, b = colorsys.hls_to_rgb(0, level_m, 0)\r
+ rval = int(round(r * 255))\r
+ gval = int(round(g * 255))\r
+ bval = int(round(b * 255))\r
+ print "%3s %3s %3s %s%% Gray" % (rval, gval, bval, 100 - int(level_m * 100))\r
+\r
+ level_mm = level + 0.75 * g_step_size\r
+ r, g, b = colorsys.hls_to_rgb(0, level_mm, 0)\r
+ rval = int(round(r * 255))\r
+ gval = int(round(g * 255))\r
+ bval = int(round(b * 255))\r
+ print "%3s %3s %3s %s%% Gray" % (rval, gval, bval, 100 - (level_mm * 100))\r
+\r
+\r
+# standard HTML colors\r
+print '''128 0 0 Maroon (#800000)\r
+255 0 0 Red (#FF0000)\r
+128 128 0 Olive (#808000)\r
+255 255 0 Yellow (#FFFF00)\r
+ 0 128 0 Green (#008000)\r
+ 0 255 0 Lime (#00FF00)\r
+ 0 128 128 Teal (#008080)\r
+ 0 255 255 Aqua (#00FFFF)\r
+ 0 0 128 Navy (#000080)\r
+ 0 0 255 Blue (#0000FF)\r
+128 0 128 Purple (#800080)\r
+255 0 255 Fuchsia (#FF00FF)'''\r
+\r
+# HSL palette\r
+h_steps = 15\r
+s_steps = 4\r
+l_steps = 11\r
+h_step_size = 1.0 / h_steps\r
+s_step_size = 1.0 / s_steps\r
+l_step_size = 1.0 / l_steps\r
+\r
+for h in range(0, h_steps):\r
+ for s in range(1, s_steps):\r
+ for l in range(1, l_steps):\r
+ hval = h * h_step_size\r
+ sval = 1 - (s * s_step_size)\r
+ lval = l * l_step_size\r
+ \r
+ r, g, b = colorsys.hls_to_rgb(hval, lval, sval)\r
+ \r
+ rval = int(round(r * 255))\r
+ gval = int(round(g * 255))\r
+ bval = int(round(b * 255))\r
+ \r
+ line = "%3s %3s %3s #%02X%02X%02X" % (rval, gval, bval, rval, gval, bval)\r
+ print line\r
diff --git a/share/palettes/inkscape.gpl b/share/palettes/inkscape.gpl
--- /dev/null
@@ -0,0 +1,479 @@
+GIMP Palette
+Name: Inkscape default
+Columns: 3
+# generated by PaletteGen.py
+ 0 0 0 Black
+ 26 26 26 90% Gray
+ 51 51 51 80% Gray
+ 77 77 77 70% Gray
+102 102 102 60% Gray
+128 128 128 50% Gray
+153 153 153 40% Gray
+179 179 179 30% Gray
+204 204 204 20% Gray
+230 230 230 10% Gray
+242 242 242 5% Gray
+249 249 249 2.5% Gray
+255 255 255 White
+128 0 0 Maroon (#800000)
+255 0 0 Red (#FF0000)
+128 128 0 Olive (#808000)
+255 255 0 Yellow (#FFFF00)
+ 0 128 0 Green (#008000)
+ 0 255 0 Lime (#00FF00)
+ 0 128 128 Teal (#008080)
+ 0 255 255 Aqua (#00FFFF)
+ 0 0 128 Navy (#000080)
+ 0 0 255 Blue (#0000FF)
+128 0 128 Purple (#800080)
+255 0 255 Fuchsia (#FF00FF)
+ 41 6 6 #290606
+ 81 12 12 #510C0C
+122 17 17 #7A1111
+162 23 23 #A21717
+203 29 29 #CB1D1D
+226 52 52 #E23434
+232 93 93 #E85D5D
+238 133 133 #EE8585
+243 174 174 #F3AEAE
+249 214 214 #F9D6D6
+ 35 12 12 #230C0C
+ 70 23 23 #461717
+104 35 35 #682323
+139 46 46 #8B2E2E
+174 58 58 #AE3A3A
+197 81 81 #C55151
+209 116 116 #D17474
+220 151 151 #DC9797
+232 185 185 #E8B9B9
+243 220 220 #F3DCDC
+ 29 17 17 #1D1111
+ 58 35 35 #3A2323
+ 87 52 52 #573434
+116 70 70 #744646
+145 87 87 #915757
+168 110 110 #A86E6E
+185 139 139 #B98B8B
+203 168 168 #CBA8A8
+220 197 197 #DCC5C5
+238 226 226 #EEE2E2
+ 41 20 6 #291406
+ 81 39 12 #51270C
+122 59 17 #7A3B11
+162 79 23 #A24F17
+203 99 29 #CB631D
+226 122 52 #E27A34
+232 148 93 #E8945D
+238 175 133 #EEAF85
+243 202 174 #F3CAAE
+249 228 214 #F9E4D6
+ 35 21 12 #23150C
+ 70 42 23 #462A17
+104 63 35 #683F23
+139 83 46 #8B532E
+174 104 58 #AE683A
+197 127 81 #C57F51
+209 153 116 #D19974
+220 179 151 #DCB397
+232 204 185 #E8CCB9
+243 230 220 #F3E6DC
+ 29 22 17 #1D1611
+ 58 44 35 #3A2C23
+ 87 66 52 #574234
+116 88 70 #745846
+145 110 87 #916E57
+168 133 110 #A8856E
+185 158 139 #B99E8B
+203 182 168 #CBB6A8
+220 206 197 #DCCEC5
+238 231 226 #EEE7E2
+ 41 34 6 #292206
+ 81 67 12 #51430C
+122 101 17 #7A6511
+162 134 23 #A28617
+203 168 29 #CBA81D
+226 191 52 #E2BF34
+232 204 93 #E8CC5D
+238 217 133 #EED985
+243 230 174 #F3E6AE
+249 242 214 #F9F2D6
+ 35 30 12 #231E0C
+ 70 60 23 #463C17
+104 90 35 #685A23
+139 121 46 #8B792E
+174 151 58 #AE973A
+197 174 81 #C5AE51
+209 190 116 #D1BE74
+220 206 151 #DCCE97
+232 223 185 #E8DFB9
+243 239 220 #F3EFDC
+ 29 27 17 #1D1B11
+ 58 53 35 #3A3523
+ 87 80 52 #575034
+116 107 70 #746B46
+145 133 87 #918557
+168 156 110 #A89C6E
+185 176 139 #B9B08B
+203 196 168 #CBC4A8
+220 216 197 #DCD8C5
+238 235 226 #EEEBE2
+ 34 41 6 #222906
+ 67 81 12 #43510C
+101 122 17 #657A11
+134 162 23 #86A217
+168 203 29 #A8CB1D
+191 226 52 #BFE234
+204 232 93 #CCE85D
+217 238 133 #D9EE85
+230 243 174 #E6F3AE
+242 249 214 #F2F9D6
+ 30 35 12 #1E230C
+ 60 70 23 #3C4617
+ 90 104 35 #5A6823
+121 139 46 #798B2E
+151 174 58 #97AE3A
+174 197 81 #AEC551
+190 209 116 #BED174
+206 220 151 #CEDC97
+223 232 185 #DFE8B9
+239 243 220 #EFF3DC
+ 27 29 17 #1B1D11
+ 53 58 35 #353A23
+ 80 87 52 #505734
+107 116 70 #6B7446
+133 145 87 #859157
+156 168 110 #9CA86E
+176 185 139 #B0B98B
+196 203 168 #C4CBA8
+216 220 197 #D8DCC5
+235 238 226 #EBEEE2
+ 20 41 6 #142906
+ 39 81 12 #27510C
+ 59 122 17 #3B7A11
+ 79 162 23 #4FA217
+ 99 203 29 #63CB1D
+122 226 52 #7AE234
+148 232 93 #94E85D
+175 238 133 #AFEE85
+202 243 174 #CAF3AE
+228 249 214 #E4F9D6
+ 21 35 12 #15230C
+ 42 70 23 #2A4617
+ 63 104 35 #3F6823
+ 83 139 46 #538B2E
+104 174 58 #68AE3A
+127 197 81 #7FC551
+153 209 116 #99D174
+179 220 151 #B3DC97
+204 232 185 #CCE8B9
+230 243 220 #E6F3DC
+ 22 29 17 #161D11
+ 44 58 35 #2C3A23
+ 66 87 52 #425734
+ 88 116 70 #587446
+110 145 87 #6E9157
+133 168 110 #85A86E
+158 185 139 #9EB98B
+182 203 168 #B6CBA8
+206 220 197 #CEDCC5
+231 238 226 #E7EEE2
+ 6 41 6 #062906
+ 12 81 12 #0C510C
+ 17 122 17 #117A11
+ 23 162 23 #17A217
+ 29 203 29 #1DCB1D
+ 52 226 52 #34E234
+ 93 232 93 #5DE85D
+133 238 133 #85EE85
+174 243 174 #AEF3AE
+214 249 214 #D6F9D6
+ 12 35 12 #0C230C
+ 23 70 23 #174617
+ 35 104 35 #236823
+ 46 139 46 #2E8B2E
+ 58 174 58 #3AAE3A
+ 81 197 81 #51C551
+116 209 116 #74D174
+151 220 151 #97DC97
+185 232 185 #B9E8B9
+220 243 220 #DCF3DC
+ 17 29 17 #111D11
+ 35 58 35 #233A23
+ 52 87 52 #345734
+ 70 116 70 #467446
+ 87 145 87 #579157
+110 168 110 #6EA86E
+139 185 139 #8BB98B
+168 203 168 #A8CBA8
+197 220 197 #C5DCC5
+226 238 226 #E2EEE2
+ 6 41 20 #062914
+ 12 81 39 #0C5127
+ 17 122 59 #117A3B
+ 23 162 79 #17A24F
+ 29 203 99 #1DCB63
+ 52 226 122 #34E27A
+ 93 232 148 #5DE894
+133 238 175 #85EEAF
+174 243 202 #AEF3CA
+214 249 228 #D6F9E4
+ 12 35 21 #0C2315
+ 23 70 42 #17462A
+ 35 104 63 #23683F
+ 46 139 83 #2E8B53
+ 58 174 104 #3AAE68
+ 81 197 128 #51C580
+116 209 153 #74D199
+151 220 179 #97DCB3
+185 232 204 #B9E8CC
+220 243 230 #DCF3E6
+ 17 29 22 #111D16
+ 35 58 44 #233A2C
+ 52 87 66 #345742
+ 70 116 88 #467458
+ 87 145 110 #57916E
+110 168 133 #6EA885
+139 185 158 #8BB99E
+168 203 182 #A8CBB6
+197 220 206 #C5DCCE
+226 238 231 #E2EEE7
+ 6 41 34 #062922
+ 12 81 67 #0C5143
+ 17 122 101 #117A65
+ 23 162 134 #17A286
+ 29 203 168 #1DCBA8
+ 52 226 191 #34E2BF
+ 93 232 204 #5DE8CC
+133 238 217 #85EED9
+174 243 230 #AEF3E6
+214 249 242 #D6F9F2
+ 12 35 30 #0C231E
+ 23 70 60 #17463C
+ 35 104 90 #23685A
+ 46 139 121 #2E8B79
+ 58 174 151 #3AAE97
+ 81 197 174 #51C5AE
+116 209 190 #74D1BE
+151 220 206 #97DCCE
+185 232 223 #B9E8DF
+220 243 239 #DCF3EF
+ 17 29 27 #111D1B
+ 35 58 53 #233A35
+ 52 87 80 #345750
+ 70 116 107 #46746B
+ 87 145 133 #579185
+110 168 156 #6EA89C
+139 185 176 #8BB9B0
+168 203 196 #A8CBC4
+197 220 216 #C5DCD8
+226 238 235 #E2EEEB
+ 6 34 41 #062229
+ 12 67 81 #0C4351
+ 17 101 122 #11657A
+ 23 134 162 #1786A2
+ 29 168 203 #1DA8CB
+ 52 191 226 #34BFE2
+ 93 204 232 #5DCCE8
+133 217 238 #85D9EE
+174 230 243 #AEE6F3
+214 242 249 #D6F2F9
+ 12 30 35 #0C1E23
+ 23 60 70 #173C46
+ 35 90 104 #235A68
+ 46 121 139 #2E798B
+ 58 151 174 #3A97AE
+ 81 174 197 #51AEC5
+116 190 209 #74BED1
+151 206 220 #97CEDC
+185 223 232 #B9DFE8
+220 239 243 #DCEFF3
+ 17 27 29 #111B1D
+ 35 53 58 #23353A
+ 52 80 87 #345057
+ 70 107 116 #466B74
+ 87 133 145 #578591
+110 156 168 #6E9CA8
+139 176 185 #8BB0B9
+168 196 203 #A8C4CB
+197 216 220 #C5D8DC
+226 235 238 #E2EBEE
+ 6 20 41 #061429
+ 12 39 81 #0C2751
+ 17 59 122 #113B7A
+ 23 79 162 #174FA2
+ 29 99 203 #1D63CB
+ 52 122 226 #347AE2
+ 93 148 232 #5D94E8
+133 175 238 #85AFEE
+174 202 243 #AECAF3
+214 228 249 #D6E4F9
+ 12 21 35 #0C1523
+ 23 42 70 #172A46
+ 35 63 104 #233F68
+ 46 83 139 #2E538B
+ 58 104 174 #3A68AE
+ 81 127 197 #517FC5
+116 153 209 #7499D1
+151 179 220 #97B3DC
+185 204 232 #B9CCE8
+220 230 243 #DCE6F3
+ 17 22 29 #11161D
+ 35 44 58 #232C3A
+ 52 66 87 #344257
+ 70 88 116 #465874
+ 87 110 145 #576E91
+110 133 168 #6E85A8
+139 158 185 #8B9EB9
+168 182 203 #A8B6CB
+197 206 220 #C5CEDC
+226 231 238 #E2E7EE
+ 6 6 41 #060629
+ 12 12 81 #0C0C51
+ 17 17 122 #11117A
+ 23 23 162 #1717A2
+ 29 29 203 #1D1DCB
+ 52 52 226 #3434E2
+ 93 93 232 #5D5DE8
+133 133 238 #8585EE
+174 174 243 #AEAEF3
+214 214 249 #D6D6F9
+ 12 12 35 #0C0C23
+ 23 23 70 #171746
+ 35 35 104 #232368
+ 46 46 139 #2E2E8B
+ 58 58 174 #3A3AAE
+ 81 81 197 #5151C5
+116 116 209 #7474D1
+151 151 220 #9797DC
+185 185 232 #B9B9E8
+220 220 243 #DCDCF3
+ 17 17 29 #11111D
+ 35 35 58 #23233A
+ 52 52 87 #343457
+ 70 70 116 #464674
+ 87 87 145 #575791
+110 110 168 #6E6EA8
+139 139 185 #8B8BB9
+168 168 203 #A8A8CB
+197 197 220 #C5C5DC
+226 226 238 #E2E2EE
+ 20 6 41 #140629
+ 39 12 81 #270C51
+ 59 17 122 #3B117A
+ 79 23 162 #4F17A2
+ 99 29 203 #631DCB
+122 52 226 #7A34E2
+148 93 232 #945DE8
+175 133 238 #AF85EE
+202 174 243 #CAAEF3
+228 214 249 #E4D6F9
+ 21 12 35 #150C23
+ 42 23 70 #2A1746
+ 63 35 104 #3F2368
+ 83 46 139 #532E8B
+104 58 174 #683AAE
+127 81 197 #7F51C5
+153 116 209 #9974D1
+179 151 220 #B397DC
+204 185 232 #CCB9E8
+230 220 243 #E6DCF3
+ 22 17 29 #16111D
+ 44 35 58 #2C233A
+ 66 52 87 #423457
+ 88 70 116 #584674
+110 87 145 #6E5791
+133 110 168 #856EA8
+158 139 185 #9E8BB9
+182 168 203 #B6A8CB
+206 197 220 #CEC5DC
+231 226 238 #E7E2EE
+ 34 6 41 #220629
+ 67 12 81 #430C51
+101 17 122 #65117A
+134 23 162 #8617A2
+168 29 203 #A81DCB
+191 52 226 #BF34E2
+204 93 232 #CC5DE8
+217 133 238 #D985EE
+230 174 243 #E6AEF3
+242 214 249 #F2D6F9
+ 30 12 35 #1E0C23
+ 60 23 70 #3C1746
+ 90 35 104 #5A2368
+121 46 139 #792E8B
+151 58 174 #973AAE
+174 81 197 #AE51C5
+190 116 209 #BE74D1
+206 151 220 #CE97DC
+223 185 232 #DFB9E8
+239 220 243 #EFDCF3
+ 27 17 29 #1B111D
+ 53 35 58 #35233A
+ 80 52 87 #503457
+107 70 116 #6B4674
+133 87 145 #855791
+156 110 168 #9C6EA8
+176 139 185 #B08BB9
+196 168 203 #C4A8CB
+216 197 220 #D8C5DC
+235 226 238 #EBE2EE
+ 41 6 34 #290622
+ 81 12 67 #510C43
+122 17 101 #7A1165
+162 23 134 #A21786
+203 29 168 #CB1DA8
+226 52 191 #E234BF
+232 93 204 #E85DCC
+238 133 217 #EE85D9
+243 174 229 #F3AEE5
+249 214 242 #F9D6F2
+ 35 12 30 #230C1E
+ 70 23 60 #46173C
+104 35 90 #68235A
+139 46 121 #8B2E79
+174 58 151 #AE3A97
+197 81 174 #C551AE
+209 116 190 #D174BE
+220 151 206 #DC97CE
+232 185 223 #E8B9DF
+243 220 239 #F3DCEF
+ 29 17 27 #1D111B
+ 58 35 53 #3A2335
+ 87 52 80 #573450
+116 70 107 #74466B
+145 87 133 #915785
+168 110 156 #A86E9C
+185 139 176 #B98BB0
+203 168 196 #CBA8C4
+220 197 216 #DCC5D8
+238 226 235 #EEE2EB
+ 41 6 20 #290614
+ 81 12 39 #510C27
+122 17 59 #7A113B
+162 23 79 #A2174F
+203 29 99 #CB1D63
+226 52 122 #E2347A
+232 93 148 #E85D94
+238 133 175 #EE85AF
+243 174 202 #F3AECA
+249 214 228 #F9D6E4
+ 35 12 21 #230C15
+ 70 23 42 #46172A
+104 35 63 #68233F
+139 46 83 #8B2E53
+174 58 104 #AE3A68
+197 81 127 #C5517F
+209 116 153 #D17499
+220 151 178 #DC97B2
+232 185 204 #E8B9CC
+243 220 230 #F3DCE6
+ 29 17 22 #1D1116
+ 58 35 44 #3A232C
+ 87 52 66 #573442
+116 70 88 #744658
+145 87 110 #91576E
+168 110 133 #A86E85
+185 139 158 #B98B9E
+203 168 182 #CBA8B6
+220 197 206 #DCC5CE
+238 226 231 #EEE2E7