News for hackers. Stuff that matters.
Re:Responsive Pixel Art by silveira on Wednesday March 09, 2016 @11:09AM (#11253739)
That's amazing. What scaling algorithm does it use?
Re:Responsive Pixel Art by svalorzen on Wednesday March 09, 2016 @11:13AM (#11253757)
I don't think it's scaling. Go on the Zeus example and play with it. You'd be surprised. This is beautiful.
Re:Responsive Pixel Art by kenbellows on Wednesday March 09, 2016 @11:39AM (#11253939)
There's certainly more than just scaling involved, but there's definitely scaling in there.
Re:Responsive Pixel Art by S4M on Wednesday March 09, 2016 @12:09PM (#11254135)
I have the feeling is that the algorithm involves different pictures that superficially look the same but represent different things, and the code decides which picture to show according to the coordinates of the mouse, and them rescale it.

I tried briefly to read the code to see if I was right but failed so - I'm not good at reading other people's code :( - so someone please correct me if I'm wrong.

Re:Responsive Pixel Art by gtfierro on Wednesday March 09, 2016 @12:34PM (#11254316)
If you look at the "image" description files (e.g. http://essenmitsosse.de/pixel/scripts/zeus.px, linked by another comment), then it looks like the files define a set of constraints on the "components" in an image such as Zeus's arm , the bird beak, the cow's leg, etc. When the mouse moves, my guess is those constraints determine which components are rendered and where they appear on screen.