News for hackers. Stuff that matters.
Re:Show HN: A live-drawn portrait of the common face by sloev on Thursday November 28, 2019 @05:41PM (#21660647)
Author here.

A python program continously draws 22 different faces over each other.

All faces are aligned at the eyes.

The drawing particles have three different behaviors:

1. Move randomly

2. Move randomly with 45 degree angles

3. Move randomly but attracted to the firstborn particle and afraid of being near the average position of all particles.

Go to

https://vrangen.net/fuzzy/static/images/debug.jpg

for a picture of the particles in action

Sourcecode available at

http://github.com/sloev/face_experiments

Re:Show HN: A live-drawn portrait of the common face by sloev on Friday November 29, 2019 @05:57PM (#21667300)
The image on the site is refreshed every 5 seconds. Changes are minuscule it does 1000 pixel changes a minute currently. Particles move at 1 pixel speed with an angle based on their behavior
Re:Show HN: A live-drawn portrait of the common face by Exuma on Friday November 29, 2019 @04:02PM (#21666787)
Does the image move in real time or is that my imagination
Re:Show HN: A live-drawn portrait of the common face by sloev on Friday November 29, 2019 @05:53PM (#21667289)
It moves in real time. It is drawn continously by phthon software. Visit the mentioned https://vrangen.net/fuzzy/static/images/debug.jpg url for a snapshot of how the particle workers are currently moving around
Re:Show HN: A live-drawn portrait of the common face by adyer07 on Thursday November 28, 2019 @07:57PM (#21661147)
The ghostly quality of the particle drawing is really nice. I love how it gets the overlaid effect across but in a nicer way than simple transparency.

How are the particles attracted to the areas of the image that need to be darker?

Re:Show HN: A live-drawn portrait of the common face by sloev on Friday November 29, 2019 @05:55PM (#21667293)
They are unaware of the underlying image they draw. Each particle is associated a random picture to draw at birth and continous to draw until death. Draw means copy a pixel from the source image to the displayed output image.

Each particle class is defined with a color in the debug.jpg image

Re:Show HN: A live-drawn portrait of the common face by romaebau on Friday November 29, 2019 @04:46PM (#21666984)
It's really amazing, but the result is a bit spooky. Still, pretty awesome.
Re:Show HN: A live-drawn portrait of the common face by sloev on Friday November 29, 2019 @05:55PM (#21667295)
Yeah very unnerving. It is also nearly as hairy as i am hahaha (long haired danish dude here)