1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-06-25 22:53:19 +00:00

minor fixes to hat parameter

This commit is contained in:
Zeno Rogue 2023-03-24 23:55:24 +01:00
parent defeaf2cc6
commit 44454c479a
2 changed files with 3 additions and 3 deletions

View File

@ -427,8 +427,8 @@ struct hrmap_hat : hrmap {
eshort *= hat_param;
elong *= 2 - hat_param;
// 0-length edges cause problems...
if(eshort == 0) eshort = .0001;
if(elong == 0) elong = .0001;
if(abs(eshort) < 1e-6) eshort = .0001;
if(abs(elong) < 1e-6) elong = .0001;
}
ld i60 = (M_PI - TAU*2/q)/degree;

View File

@ -824,7 +824,7 @@ EX void initConfig() {
param_custom(vid.binary_width, "binary tiling width", menuitem_binary_width, 'v');
param_f(hat::hat_param, "hat_param", "hat_param", 1)
-> editable(0, 2, 1, "Hat parameter",
-> editable(0, 2, 0.1, "hat parameter",
"Apeirodic hat tiling based on: https://arxiv.org/pdf/2303.10798.pdf\n\n"
"This controls the parameter discussed in Section 6.", 'v'
)