Module: Constants

Global constants used across the app.
Author:
  • Radim Brnka
Source:

Members

(static, constant) APP_NAME :string

Application name
Type:
  • string
Source:

(static, constant) DEBUG_MODE :boolean

DEBUG MODE. Set to false for prod deployment!
Type:
  • boolean
Source:

(static, constant) DEFAULT_ACCENT_COLOR :string

Default main GUI color
Type:
  • string
Source:

(static, constant) DEFAULT_BG_COLOR :string

Default secondary (background) GUI color
Type:
  • string
Source:

(static, constant) DEFAULT_JULIA_THEME_COLOR :PALETTE

Default color used based on the initial Julia coloring. It's accent color / 1.9 brightness factor that is hardcoded in the updateColorTheme method.
Type:
  • PALETTE
Source:

(static, constant) DEFAULT_MANDELBROT_THEME_COLOR :PALETTE

Default color used based on the initial Mandelbrot coloring. It's accent color / 1.9 brightness factor that is hardcoded in the updateColorTheme method.
Type:
  • PALETTE
Source:

(static, constant) DEG :number

Rotation constants for easy deg/rad conversion
Type:
  • number
Source:

(static, constant) EASE_TYPE :function

Ease in-out transition types matching functions in Utils module
Type:
  • function
Source:

(static, constant) FF_PERSISTENT_FRACTAL_SWITCHING

Allows to switch between fractal while keeping the params to allow Mandelbrot and Julia match each other
Source:

(static, constant) FF_USER_INPUT_ALLOWED

Enables bottom bar for user input for custom coords
Source:

(static, constant) FRACTAL_TYPE :number

Enum of fractal types
Type:
  • number
Source:

(static, constant) JULIA_PALETTES :Array.<JULIA_PALETTE>

Set of Julia-specific palettes. Keep the default first
Type:
  • Array.<JULIA_PALETTE>
Source:

(static, constant) PI :number|number

PI
Type:
  • number | number
Source:

(static, constant) ROTATION_DIRECTION :number

Rotation directions
Type:
  • number
Source:

(inner, constant) USE_PRECISE_PI :boolean

This is to allow switching between two precisions as the embedded PI constant is too accurate, which is not needed in many cases (rotations etc.)
Type:
  • boolean
Default Value:
  • true
Source: