Git Product home page Git Product logo

accenture-task's Introduction

Title Author Date
Accenture Task
Arnab Tarwani
30-11-2022

Accenture Task

How to run the app

  1. Clone the repository
  2. Run yarn install to install all the dependencies
  3. Run yarn dev to start the app

How to run the production build that also runs on node

  1. Run yarn build
  2. Run yarn start

Description

@method rotationPointInRadians - rotates a point around a center point by a given angle in radians

  • This method calculates the rotation point in radians by calculating the center of the image and the angle and then rotating it on the given angle and then returning the new point from the center of the image

@method calculateImageDimensions - Calculates the dimensions of the image after rotation

  • This method calculates the new image dimensions by calculating the new width and height of the image and then returning the new width and height

@method rotatePixelArray - Rotates the pixel array

  • This method takes the imageData properties - width, height, data and angle by which the image is to be rotated. It then reads the source image, maps the pixels to the new location 4 blocks at a time, and writes the result to the destination image. Simultaniously it calculates the new image dimensions based on the provided angle and instantiates a new array that holds the new image data. Finally, it returns the new image data and the new image dimensions

@method rotate - Rotates the image

  • This method takes the image and angle by which the image is to be rotated. It then reads the source image and then rotates the image by the given angle and then returns the rotated image
  • @param {number} angle - The angle by which the image is to be rotated has a datatype number as all numbers in Typescript are treated as number

Inspiration for this project

Tech stack

  • React
  • Typescript
  • Vite (for bundling)
  • TailwindCSS (for styling)

accenture-task's People

Contributors

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