Home > Back-end >  Restructuring algorithm for help: some pixels to recombine the letters
Restructuring algorithm for help: some pixels to recombine the letters

Time:10-12

Recently in the subway to see a sister to see a video, feel very funny, since the cellar,
There is a general content is: "hello" to appear on the screen, then each pixel of the hello scattered, pixels through a series of coordinate chaos transform, and then reassembled into "world", I want to ask the process have a professional term? In addition this algorithm should do?

CodePudding user response:

As long as you have the same number of pixel color, how do you go casually,

CodePudding user response:

reference 1st floor lhylhy response:
as long as you have the same number of pixel color, how do you go casually,

, those pixels chaos after some point is out of the screen, and then come back, so maybe twice the number of pixels is different, and how to get the coordinates of the point makes a disciplined didn't rule, in the words of the people is how to be art

CodePudding user response:

refer to the second floor iHuahua response:
Quote: refer to 1st floor lhylhy response:

As long as you have the same number of pixel color, how do you go casually,

, those pixels chaos after some point is out of the screen, and then come back, so maybe twice the number of pixels is different, and how to get the coordinates of the point makes a disciplined didn't rule, in the words of the people is the art of how to be

Since can be, you have a random change,

CodePudding user response:

I think, first of all the first figure, all pixel coordinates, then get the second picture of all the pixels icon.
Icon turn yourself and then two groups, one by one point moving, the gradient color, is not enough to generate pixel, many words out, but such calculation good trouble ah

CodePudding user response:

Similar to the deformation of the flash animation

CodePudding user response:

reference 4 floor hyz_cs response:
I think, first of all, the first figure, all pixel coordinates, then get the second picture of all the pixels icon.
Icon turn yourself and then two groups, one by one point moving, the gradient color, is not enough to generate pixel, many words out, but such calculation good trouble ah

Yes, this is too much trouble, and this just a transformation

CodePudding user response:

Remember the dx demo bag seen ready-made effect, namely a few lines of code

CodePudding user response:

refer to 6th floor iHuahua response:
Quote: refer to 4th floor hyz_cs response:

I think, first of all the first figure, all pixel coordinates, then get the second picture of all the pixels icon.
Icon turn yourself and then two groups, one by one point moving, the gradient color, is not enough to generate pixel, many words out, but such calculation good trouble ah

Yes, this is too much trouble, and it is only a transformation once


Once done, no matter how many times is not the same.

CodePudding user response:

Hello, from a character into pixels,,,, break up disappear
World from scattered pixels into character world
But is a process of two contrary,
As long as the middle part of the difference is not big, can be seamlessly transform to come over,
  • Related