-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
compute radii and colors on the fly (#768)
* compute radii and colors on the fly * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * update tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix non-existing `colors` and `radii` keys * fix connect * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove comments * fix colors --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
- Loading branch information
1 parent
e62e9b3
commit 317a485
Showing
5 changed files
with
157 additions
and
37 deletions.
There are no files selected for viewing
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,125 @@ | ||
import { Color } from "three"; | ||
|
||
export const JMOL_COLORS = [ | ||
new Color("#ff0000"), | ||
new Color("#ffffff"), | ||
new Color("#d9ffff"), | ||
new Color("#cc80ff"), | ||
new Color("#c2ff00"), | ||
new Color("#ffb5b5"), | ||
new Color("#909090"), | ||
new Color("#2f50f8"), | ||
new Color("#ff0d0d"), | ||
new Color("#90df50"), | ||
new Color("#b3e2f5"), | ||
new Color("#ab5cf1"), | ||
new Color("#89ff00"), | ||
new Color("#bea6a6"), | ||
new Color("#efc79f"), | ||
new Color("#ff8000"), | ||
new Color("#ffff2f"), | ||
new Color("#1fef1f"), | ||
new Color("#80d1e2"), | ||
new Color("#8f40d3"), | ||
new Color("#3cff00"), | ||
new Color("#e6e6e6"), | ||
new Color("#bec2c6"), | ||
new Color("#a6a6ab"), | ||
new Color("#8999c6"), | ||
new Color("#9c79c6"), | ||
new Color("#df6633"), | ||
new Color("#ef909f"), | ||
new Color("#50d050"), | ||
new Color("#c78033"), | ||
new Color("#7c80af"), | ||
new Color("#c28f8f"), | ||
new Color("#668f8f"), | ||
new Color("#bc80e2"), | ||
new Color("#ffa000"), | ||
new Color("#a62929"), | ||
new Color("#5cb8d1"), | ||
new Color("#6f2daf"), | ||
new Color("#00ff00"), | ||
new Color("#93ffff"), | ||
new Color("#93dfdf"), | ||
new Color("#73c2c8"), | ||
new Color("#53b5b5"), | ||
new Color("#3a9e9e"), | ||
new Color("#238f8f"), | ||
new Color("#097c8b"), | ||
new Color("#006985"), | ||
new Color("#c0c0c0"), | ||
new Color("#ffd98f"), | ||
new Color("#a67573"), | ||
new Color("#668080"), | ||
new Color("#9e62b5"), | ||
new Color("#d37900"), | ||
new Color("#930093"), | ||
new Color("#429eaf"), | ||
new Color("#56168f"), | ||
new Color("#00c800"), | ||
new Color("#6fd3ff"), | ||
new Color("#ffffc6"), | ||
new Color("#d9ffc6"), | ||
new Color("#c6ffc6"), | ||
new Color("#a2ffc6"), | ||
new Color("#8fffc6"), | ||
new Color("#60ffc6"), | ||
new Color("#45ffc6"), | ||
new Color("#2fffc6"), | ||
new Color("#1fffc6"), | ||
new Color("#00ff9c"), | ||
new Color("#00e675"), | ||
new Color("#00d352"), | ||
new Color("#00be38"), | ||
new Color("#00ab23"), | ||
new Color("#4dc2ff"), | ||
new Color("#4da6ff"), | ||
new Color("#2093d5"), | ||
new Color("#257cab"), | ||
new Color("#256695"), | ||
new Color("#165386"), | ||
new Color("#d0d0df"), | ||
new Color("#ffd122"), | ||
new Color("#b8b8d0"), | ||
new Color("#a6534d"), | ||
new Color("#565860"), | ||
new Color("#9e4fb5"), | ||
new Color("#ab5c00"), | ||
new Color("#754f45"), | ||
new Color("#428295"), | ||
new Color("#420066"), | ||
new Color("#007c00"), | ||
new Color("#6fabf9"), | ||
new Color("#00b9ff"), | ||
new Color("#00a0ff"), | ||
new Color("#008fff"), | ||
new Color("#0080ff"), | ||
new Color("#006bff"), | ||
new Color("#535cf1"), | ||
new Color("#785ce2"), | ||
new Color("#894fe2"), | ||
new Color("#a036d3"), | ||
new Color("#b31fd3"), | ||
new Color("#b31fb9"), | ||
new Color("#b30da6"), | ||
new Color("#bc0d86"), | ||
new Color("#c60066"), | ||
new Color("#cc0058"), | ||
new Color("#d1004f"), | ||
new Color("#d90045"), | ||
new Color("#df0038"), | ||
new Color("#e6002d"), | ||
new Color("#eb0025"), | ||
]; | ||
|
||
export const covalentRadii = [ | ||
1, 0.31, 0.28, 1.28, 0.96, 0.84, 0.76, 0.71, 0.66, 0.57, 0.58, 1.66, 1.41, | ||
1.21, 1.11, 1.07, 1.05, 1.02, 1.06, 2.03, 1.76, 1.7, 1.6, 1.53, 1.39, 1.39, | ||
1.32, 1.26, 1.24, 1.32, 1.22, 1.22, 1.2, 1.19, 1.2, 1.2, 1.16, 2.2, 1.95, 1.9, | ||
1.75, 1.64, 1.54, 1.47, 1.46, 1.42, 1.39, 1.45, 1.44, 1.42, 1.39, 1.39, 1.38, | ||
1.39, 1.4, 2.44, 2.15, 2.07, 2.04, 2.03, 2.01, 1.99, 1.98, 1.98, 1.96, 1.94, | ||
1.92, 1.92, 1.89, 1.9, 1.87, 1.87, 1.75, 1.7, 1.62, 1.51, 1.44, 1.41, 1.36, | ||
1.36, 1.32, 1.45, 1.46, 1.48, 1.4, 1.5, 1.5, 2.6, 2.21, 2.15, 2.06, 2.0, 1.96, | ||
1.9, 1.87, 1.8, 1.69, | ||
]; |
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
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