summaryrefslogtreecommitdiff
path: root/client/splash/constants.js
diff options
context:
space:
mode:
authoradamhrv <adam@ahprojects.com>2019-01-28 18:11:52 +0100
committeradamhrv <adam@ahprojects.com>2019-01-28 18:11:52 +0100
commitf8b279b2f0be793c5f877cac6373332954c6a5de (patch)
tree60be7caeb0e8c96c59718300c68d5b1cdecde6f4 /client/splash/constants.js
parentdd2c36288aa1e8af14588f9258f6785879b8638c (diff)
parentb0eb2d9672044a1b64a2a1f21540f9ef1bd7b571 (diff)
Merge branch 'master' of github.com:adamhrv/megapixels_dev
Diffstat (limited to 'client/splash/constants.js')
-rw-r--r--client/splash/constants.js54
1 files changed, 54 insertions, 0 deletions
diff --git a/client/splash/constants.js b/client/splash/constants.js
new file mode 100644
index 00000000..a3724b72
--- /dev/null
+++ b/client/splash/constants.js
@@ -0,0 +1,54 @@
+/* renderer */
+
+export const CAMERA_NEAR = 0.001
+export const CAMERA_FAR = 1000
+
+export const CAMERA_X = 0
+export const CAMERA_Y = 0.2
+export const CAMERA_Z = 2
+
+export const FOG_COLOR = 0x191919
+
+/* tag cloud */
+
+export const CLOUD_COLORS = [
+ 0xffffff,
+ 0xffffff,
+ 0xffffff,
+ 0xdddde6,
+ 0x888896,
+]
+
+export const CLOUD_SCALE = 1
+export const CLOUD_ROTATION_SPEED = 0.001
+export const CLOUD_MAX_COUNT = 80
+export const CLOUD_TEXT_MIN_SIZE = 0.01
+export const CLOUD_TEXT_MAX_SIZE = 0.04
+
+/* face */
+
+export const FACE_SCALE = 1
+
+/* face markers */
+
+export const FACE_MARKERS_SCALE = 0.82
+export const FACE_OFFSET_X = 0
+export const FACE_OFFSET_Y = -0.0295
+export const FACE_OFFSET_Z = 0.0275
+
+export const MARKER_POINT_COLOR = 0xffffff
+export const MARKER_COLORS = [
+ 0xff3333,
+ 0xff8833,
+ 0xffff33,
+ 0x338833,
+ 0x3388ff,
+ 0x3333ff,
+ 0x8833ff,
+ 0xff3388,
+ 0xffffff,
+]
+
+export const POINT_SCALE = 0.01
+export const LINE_THICKNESS = 0.0075
+export const FACE_POINT_COUNT = 68