Giter Club home page Giter Club logo

bad_apple_moon_emoji's Introduction

maxresdefault

Bad Apple: Moon Phase Emoji edition

Once I’ve opened Telegram and seen this:

πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ˜πŸŒ‘πŸŒ“πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ‘πŸŒ•πŸŒ•πŸŒ•πŸŒ—πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ‘πŸŒ•πŸŒ•πŸŒ–πŸŒ‘πŸ‘πŸŒ‘πŸ‘πŸŒ”πŸŒ—πŸŒ‘πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ˜πŸŒ“πŸŒ•πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ”πŸŒ•πŸŒ˜πŸŒ”πŸŒ•
πŸŒ•πŸŒ•πŸŒ—πŸŒ‘πŸŒ˜πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ•πŸŒ–πŸŒ‘πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ•πŸŒ˜πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ•πŸŒ–πŸŒ‘πŸŒ”πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ•πŸŒ–πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ”πŸŒ•πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ•πŸŒ—πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ‘πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ•πŸŒ˜πŸŒ‘πŸŒ•πŸŒ•πŸŒ˜πŸŒ‘πŸŒ”πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ•πŸŒ‘πŸŒ“πŸŒ•πŸŒ•πŸŒ—πŸŒ‘πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ–πŸŒ‘πŸŒ”πŸŒ•πŸŒ•πŸŒ–πŸŒ‘πŸŒ”πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ—πŸŒ‘πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ‘πŸŒ‘πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•
πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•πŸŒ•

(thank you, @folex)

And that’s how idea was born.

Installation

  1. Install Processing 3

  2. Open the bad_apple_emoji.pde file in Processing 3 and press β–Ά button (or Ctrl+R)

  3. Change it! You can play around with output size, tile size, select one of two available emoji themes, or get creative and write some more code!

How it works

  1. Split frame into tiles. Each tile will have a single emoji.

  2. For each tile:

    1. Split tiles horizontally into 4 vertical regions.

    2. Average each region color, calculate it’s brightness, and check if it crosses threshold.

    3. Calculate perceptual hash of the tile: set corresponding to the region bits in range 0:3 to 1 if the region is brighter than the defined threshold and 0 if it’s darker.

    4. Lookup image from table that matches such hash (table constructed manually, with approximations)

    5. Draw corresponding image at the current tile.

bad_apple_moon_emoji's People

Contributors

pavlus avatar

Stargazers

 avatar

Watchers

 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.