-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for advanced options during Export #50
Comments
Case Study 1: Cell ScaleInput: The integer informed as value of Logic: Each cell present in the simulation should be translated to a square of pixels, where the size of the square is equivalent to the value informed in the input. All the pixels of the square must have the same colour of the cell. All squares must follow the same distribution as the original grid. Output: An image of the simulated grid of cells that is equals to or greater than the simulated area, scaled to the value informed. (Edit: see #56 (comment) for the outcome) |
Case Study 2: Show grid linesInput: A binary choice between "Yes" and "No", where "Yes" means that the grid lines must be included in the image to be exported, while "No" means that the grid lines must be excluded from the image to be exported. This option will be available only if the value informed for Cell Scale is greater or equals to 3. If the Cell Scale informed is less than 3, the component must be disabled, and no grid lines will be included. Logic: The following axioms will be considered as a definition of Grid:
The following table contains attempts of applying the axioms using the examples 2, 3, 4, 5 and 6 of Case Study 1, considering that each attempt uses a cellular space of 9 cells, each cell with the correspondent Cell Scale in pixels, as defined per example. All cells are notated with
Overall, the attempts 3, 4 and 5 managed to surround with lines the cellular space as a frame, separate with lines a cell from the cells of its neighbourhood, keep the cellular space with the same size as when there is no grid while preserving the state of all cells of the cellular space. (Axioms 1, 2, 3 and 4) The successful attempts 3, 4 and 5 also disclosed 3 patterns:
The patterns 1 and 2 can be used as steps of the algorithm. Output: An image of the simulated grid of cells that is equals to or greater than the simulated area, scaled to the value informed in Cell Scale, which includes the grid lines if the value informed in Cell Scale is greater or equals to 3, and Show grid lines is configured with the value "Yes". (Edit: see #57 (comment) for the outcome) |
Case Study 3: Grid lines thicknessInput: The integer informed as value of Logic: The 4 axioms defined in Case Study 2 must remain valid and applicable to the variations in grid lines thickness. All 5 attempts of applying the axioms through different
Considering the pattern above and the successful attempts (3, 4 and 5) from Case Study 2, it is possible to notice a new pattern which determines the shape of the grid lines in every cell. Considering any of the cellular spaces from the successful attempts, it is possible to assume that for the cells 1 and 2, the grid uses the first and last lines of pixels from the cell, and also the fist column, in a "C" like shape. In the cells 6 and 9, the grid uses the first and last column of pixels, and also the last line, in a "U" like shape. In the cells 4, 5, 7 and 8, the grid uses the first column of pixels, and also the last line, in a "L" like shape. Finally, in the cell 3, the grid uses the first and last line of pixels, and also the first and last column, in a "O" like shape. Aware of this 4 possible shapes of the grid within a cellular space, it is possible to assume that the real area of the cell is calculated through the formula Cell with grid shape "O":
Cell with grid shape "L":
Cell with grid shape "U":
Cell with grid shape "C":
Giving that the cell with grid shape "O" is the one with the smallest area in the cellular space, this cell is the reference for evaluating the higher limit of As the cell with grid shape "O" increases the grid thickness from all 4 sides towards the center equally, it is possible to assume only 2 sides for the investigation, as the other 2 sides will be simply a reflection in a different orientation. Given the first and last columns of a cell, each time the grid lines increases, they occupy the columns that are free towards the center. By repeating that process, when it hits the center it is possible that: 1 - exactly 1 pixel is left as cell and all the other pixels are grid (this happens if the Since at least 1 pixel must be left as the area of the cell, the Example: 5 - 1 = 4 (5 pixels as Now still considering the example above, if 4 pixels are used as grid, 2 pixels are occupied at one side of the 1 pixel representing the cell, and 2 pixels are occupied in the other side of that same pixel. So by dividing this amount by 2, the result is the maximum of thickness allowed. The above is the logic behind the formula: Output: An image of the simulated grid of cells that is equals to or greater than the simulated area, scaled to the value informed in Cell Scale, which includes the grid lines if the value informed in Cell Scale is greater or equals to 3, and Show grid lines is configured with the value "Yes". The grid lines thickness will be equals to 1 pixel for when the Cell Scale informed is 3 or 4, and equals to the allowed values from (Edit: see #59 (comment) for the outcome) |
Case Study 4: Grid lines colourInput: A String in hexadecimal format representing the RGB colour to be used by the grid lines. This component is enabled only when the component Logic: All grid lines must be created using the valid RGB colour informed, with no alpha, gradient or pattern. Just solid colour equally distributed through all lines. Output: An image of the simulated grid of cells that is equals to or greater than the simulated area, scaled to the value informed in Cell Scale, which includes the grid lines if the value informed in Cell Scale is greater or equals to 3, and Show grid lines is configured with the value "Yes". The grid lines thickness will be equals to 1 pixel for when the Cell Scale informed is 3 or 4, and equals to the allowed values from t = (c-1)/2 when Cell Scale is greater or equals to 5. The grid lines colour will be the RGB informed through Grid lines colour. (Edit: see #60 (comment) for the outcome) |
Summary of progress and outcome per Case Study: Case Study 1 (Cell Scale): #56 (comment) |
When exporting the simulation as an image, support the following options:
The text was updated successfully, but these errors were encountered: