Code Monkey home page Code Monkey logo

logos's Introduction

logos

Project Description

Algorithm Philosophy

The design philosophy behind this application is simple: visualize an algorithm which takes a data set and returns an array of colors unique to those inputs. To achieve this goal, the algorithm takes in four inputs and returns a single output.

Inputs

The input is an object with four properties. Each property is a string, however the color property contains a string in the form similar to an RGBA color with an opacity of 1.0.

{
  firstname: 'Jon',
  lastname: 'Sadka',
  definedBy: 'I relate to ...',
  color: 'RGBA(123,123,123,1.0)'
}

Output

The algorithm returns one array as a result. The length of the array is a perfect square (i.e. Math.sqrt(logoarray.length) returns an integer) and each index is a RGBA string with a unique opacity value.

["RGBA(126,29,15,0.9788)","RGBA(126,29,15,0.0236)",
  ...,
 "RGBA(126,29,15,0.9968)","RGBA(126,29,15,0)"]

Database Philosophy

For a given user using this application, one might want to save many logos. To acheieve this, each user saved on the server is comprised of an email address, password, and logo inputs as follows:

{
  username: '[email protected]',
  password: 'IamAwesome:)',
  logos: [{
            firstname: 'Jon',
            lastname: 'Sadka',
            definedBy: 'I love avocadoes!!',
            color: 'RGBA(33,188,215,1.0)'
          },
          ...
          {
            firstname: 'Greatest',
            lastname: 'Ever',
            definedBy: 'I relate to horrible music.',
            color: 'RGBA(60,60,60,1.0)'
          }]
}

Project Stack

  • Angular
  • D3
  • Node
  • Express
  • MongoDB

logos's People

Contributors

cmccloud avatar codengjon avatar jonsadka avatar singalongwithme 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.