-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.jl
37 lines (32 loc) · 996 Bytes
/
settings.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# polygons
const POLYGONS_MIN = 50
const POLYGONS_MAX = 50000
# points
const POINTS_PER_POLYGON_MIN = 3
const POINTS_PER_POLYGON_MAX = 10
const POINTS_MIN = POINTS_PER_POLYGON_MIN*POLYGONS_MIN
const POINTS_MAX = POINTS_PER_POLYGON_MAX*POLYGONS_MAX
# mutation rates
const ADD_POLYGON_MUTATION_RATE = 500
const REMOVE_POLYGON_MUTATION_RATE = 1000
const MOVE_POLYGON_MUTATION_RATE = 500
const ADD_POINT_MUTATION_RATE = 1000
const REMOVE_POINT_MUTATION_RATE = 1000
const MOVE_POINT_MAX_MUTATION_RATE = 700
const MOVE_POINT_MID_MUTATION_RATE = 700
const MOVE_POINT_MIN_MUTATION_RATE = 700
const RED_MUTATION_RATE = 500
const GREEN_MUTATION_RATE = 500
const BLUE_MUTATION_RATE = 500
const ALPHA_MUTATION_RATE = 500
# ranges
const MOVE_POINT_RANGE_MID = 20
const MOVE_POINT_RANGE_MIN = 3
const RED_RANGE_MAX = 255
const RED_RANGE_MIN = 0
const GREEN_RANGE_MAX = 255
const GREEN_RANGE_MIN = 0
const BLUE_RANGE_MAX = 255
const BLUE_RANGE_MIN = 0
const ALPHA_RANGE_MAX = 60
const ALPHA_RANGE_MIN = 30