Skip to content

A fun application for creating colorful shapes created by using Javascript classes.

Notifications You must be signed in to change notification settings

navjot0210/shape-factory

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shape Factory

Welcome to Shape Factory! This application allows you to dynamically create squares and circles inside a grid container using HTML , CSS , and JavaScript .

How to use

  • Select 'Shape' between 'circle' and 'square'.
  • Select a specific colour from the provided options.
  • Click on the 'Create' button.

JavaScript Class

class Shape {
  constructor(name, colour) {
    this._name = name;
    this._colour = colour;
  }

  get name() {
    return this._name;
  }

  get colour() {
    return this._colour;
  }

  getInfo() {
    return `${this._colour} ${this._name}`;
  }
}

Technologies Used

html5 css3 javascript

Contributions

Worked with Manpreet_Kaur for this project.

Demo

Click here to test the application.

Thank you for using Shape Factory! Happy coding! 🎉

About

A fun application for creating colorful shapes created by using Javascript classes.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published