How to make an image of a spiral galaxy based on data points?

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

+3
source share
3 answers

trying to delete my comment ... just let me delete it stackoverflow

+1
source

RMagick, SVG. .

, 2D, .

, . ( , , , , 3D), . 2D-, .

, 2D- . , .

0

. , , , , . , , . .

, flex , , . , , .

But I will say that I need a / Pictures directory that looks like a giraffe. I do not have the coordinates of the giraffe, but if I drew it, I would like to create it with the pictures that I have, in the order of the directory list, along the path of the image lines.

I'll play a little.

0
source

Source: https://habr.com/ru/post/1722621/


All Articles