I am trying to build points from a very large array into an image using Ruby. Thus, the elements of the array are represented by a point or a point of the corresponding color, and the points together form a shape. Since the points are taken from the array, they are not random in color or location to each other, so I'm confused how to get started.
I ultimately want to make the shape of a spiral galaxy, but just consider the discovery above. This can also be complicated later, because the middle will have more points than the outer layers, but again it doesn’t matter. I just want to know how to start using array elements first to make an ordered image based on the colors of the array elements.
With this source image, I can divide the image into tiles, which each tile is clickable, represents a region of dots, which ultimately allows me to use the first process over and over again to make a quadrant, and then for the solar system, etc.
I do not know how to present the original image.
I use Ruby and the Rmagick library. If there is another package to use, or even another Linux-based program (cmd or gui) that can help make this initial image, this will be a big help.
thanks
source
share