Giter Site home page Giter Site logo

greg-kennedy / theartist Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 0.0 643 KB

Processing version of After Dark 3.0 "The Artist" module

License: Creative Commons Zero v1.0 Universal

Processing 100.00%
afterdark art edge-detection image-filter processing

theartist's Introduction

The Artist

Processing version of After Dark 3.0 "The Artist" module Sample output

About

This is a Processing recreation of the After Dark 3.0 module "The Artist". The screensaver takes an input image, then uses primitive shapes (circles or lines) to redraw it in increasing detail. The result is a somewhat impressionistic rendering of the input.

The order of pixels drawn is determined by some form of edge-detection algorithm: areas of low detail are drawn first in large swatches. Finely detailed areas are drawn later and with a smaller brush.

Here is a video of the original module in action:

https://youtu.be/kO0UFQP7hcs

This program is not a perfect recreation of the original, but it achieves artistic results all the same. A number of "knobs" at the top of the file can be adjusted to change the output format or processing steps.

Technical

Input images are converted to grayscale, optionally blurred, then Sobel edge detection is used to find detailed areas. Finally, histogram equalization is applied to create a smooth progression of source range for drawing.

Note that these steps are done on floating-point grayscale values, rather than using a PImage. Using only 8 bits lacks precision for creating the final edge image.

theartist's People

Contributors

greg-kennedy avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.