Git Product home page Git Product logo

fractal_clothing's Introduction

Fractal Clothing

The project of a constructor of fashion design based on fractals. The user can change the scale, color and position of the fractal, choosing a unique design for several types of clothing. The project is under development and functional additions.

Description of methods of the Mandelbrot class

  • type_cl(type) – for processing the selection of the type of clothing (type parameter - selected type);
  • imag() - for drawing a clothing stencil in canvas.
  • palette() - to generate a color palette and change it by the user;
  • hexToRgb(hex) – to convert colors from HEX format to RGB format (hex parameter – color in HEX format);
  • redraw() - to redraw the window when moving/scaling the fractal and changing colors;
  • mandel(x, y) - for calculating the Mandelbrot fractal (parameters x, y are the abscissa and ordinate of the starting point, respectively);
  • pset(x, y, k) - filling in the data in the ImageData object about 1 pixel (parameters x, y - pixel coordinates, k - color parameter);
  • click(e) - to handle mouse (for moving) and keyboard (for zooming) events.

Demonstration of the work

Demo

Examples of clothing

T-shirt Longsleeve Dress Hoodies ShopperBag

fractal_clothing's People

Contributors

alex-kud avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

leeraag

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.