Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e4b65e9

Browse files
author
Kim
committedApr 3, 2018
Change node radius from gridsize from linear to inversely proportional
1 parent 4e7b708 commit e4b65e9

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed
 

‎all.txt

Whitespace-only changes.

‎src/Grid.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Grid::Grid(unsigned size_, bool eight_connected_, std::optional<int> seed_)
1111
, unit{_total_size / (_size - 1)}
1212
, diagonal_unit{eight_connected_ ? std::hypot(unit, unit) : 0}
1313
{
14-
_node_radius = -(3 / 8.f) * size_ + (95 / 4.f);
14+
_node_radius = (375 / 2.f) / size_ + (5 / 4.f);
1515
_total_size = Gui::cst::Window::size - 2 * _node_radius;
1616

1717
_nodes.reserve(std::pow(_size, 2));

0 commit comments

Comments
 (0)
Please sign in to comment.