Code Monkey home page Code Monkey logo

flood's Introduction

flood

A Flood-Fill Algorithm for Creative Coders

This is the source code for a section of my website. You're welcome to snoop around to see how it works, maybe even make a pull request! (I've been wanting to speed it up and improve performance!)

How it works

Simply click anywhere in the page to start the flooding process. It works by spreading colour to its transparent neighbours, and tweaking the colour of those neighbours slightly from the original. This results in a sort of circular shape with pretty patterns and... why don't you just go there and see for yourself!

Plans for the future

I'd like to add a few features for things like

  • Resetting the canvas,

    (Maybe a keybind? Or a button in a menu?)

  • A menu for tweaking how it runs,

    (I found a few interesting ways to change how it updates and colours things, a few sliders should do the trick nicely.)

  • Rendering the resulting image at custom resolutions.

    (Wallpapers, icons, things like that. Not sure what kind of input would work, might just do a dropdown with the common sizes - like 1080p, 2k and 4k - or a couple of input boxes for more niche sizes - like... uhhh... 3002 by 273?)

flood's People

Contributors

magnogen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 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.