Giter Site home page Giter Site logo

tanminggang / text-to-point-to-text-conversion-animation Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nadeemshakya/text-to-point-to-text-conversion-animation

0.0 0.0 0.0 226 KB

Here I'll trying to create text using particles in the browser canvas using HTML 5 Canvas and JavaScript.

Home Page: https://nadeemshakya.github.io/Text-to-Point-to-Text-Conversion-Animation/

HTML 15.62% CSS 15.19% JavaScript 69.19%

text-to-point-to-text-conversion-animation's Introduction

Text-to-Point-to-Text-Conversion-Animation

Here I'll trying to create text using particles in the browser canvas using HTML 5 Canvas and JavaScript.

  • An animation where Random bubbles come together to form the text you provided as an input.
  • Object interaction with image data of the canvas.

DEMO

https://nadeemshakya.github.io/Text-to-Point-to-Text-Conversion-Animation/

SCREENSHOT

Computing x and y pixel position on the basis of the RGBA values.

  • Get the Linear Position of the pixel depending on the alpha value.
        let linearPosition = alphaIndex / 4;
  • Divide the linearPosition by the width to get the Y Co-ordinate.
        let y = Math.floor(linearPosition / canvas.width);
  • Multiply the y co-ordinate by the width and substract the whole value from the LinearPosition to get the X Co-ordinate.
        let x = linearPosition - (Math.floor(linearPosition / canvas.width) * canvas.width);

text-to-point-to-text-conversion-animation's People

Contributors

nadeemshakya 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.