mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	minor fixes to hat parameter
This commit is contained in:
		| @@ -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; | ||||
|   | ||||
| @@ -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' | ||||
|     ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue