YouTube
Simulation [gnuplot]
Rules [1]
Case 1 : Original Langton's ant
Source code (PLT file)
Output (PNG file → GIF file)
Case 2 : Extended Langton's ant
Source code (PLT file) (Rule : RRLLLRLLLRRR)
Output (PNG file → GIF file)
Rule : LLRR |
Rule : LRRRRRLLR |
Rule : LLRRRLRLRLLR |
Rule : RRLLLRLLLRRR |
Note : How to draw cells
Using "object rectangle from x1,y1 to x2,y2"
GOOD: Easy to arrange squares
In this way, the size of rectangle is determined by position of vertices. So, you can arrange rectangles in good order by using command "object rectangle" and setting option "from" and "to".BAD: Slow calculation and image ouput
Processing time for setting objects is long. So, you can't output PNG files fast. ↓ In this article, using object command, I made animation of Conway's game of life.Conway's Game of life [gnuplot]
https://hirossoliloquy.blogspot.com/2018/10/conways-game-of-life-gnuplot.html
Hiro's Soliloquy
https://hirossoliloquy.blogspot.com/2018/10/conways-game-of-life-gnuplot.html
Hiro's Soliloquy
No comments:
Post a Comment