Giter Club home page Giter Club logo

etch-a-sketch's Introduction

Etch-A-Sketch

Welcome to Etch-A-Sketch, a browser-based sketchpad project where you can unleash your creativity by drawing on a grid!

Project Overview

Etch-A-Sketch is a project designed to practice DOM manipulation using HTML, CSS (with Flexbox), and JavaScript. It allows users to draw on a grid of squares by hovering over them, creating a pixelated trail reminiscent of the classic Etch-A-Sketch toy.

Features

  • Dynamic Grid Creation: Generate a customizable grid of squares using JavaScript.
  • Hover Effect: Change the color of grid squares on hover to simulate drawing.
  • Reset Grid: Clear the current grid and create a new one with a specified number of squares per side.
  • Extra Credit Features:
    • Random RGB Colors: Squares change to random RGB colors on hover.
    • Progressive Darkening: Each hover darkens the square progressively until fully black.

Getting Started

Prerequisites

  • Web browser (Google Chrome, Firefox, Safari, etc.)

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/Etch-A-Sketch.git
    cd Etch-A-Sketch
  2. Open index.html in your browser to start using the Etch-A-Sketch.

Usage

  • Drawing: Hover over the grid squares to draw with your mouse.
  • Reset Grid:
    • Click the "Reset Grid" button at the top of the screen.
    • Enter the number of squares per side (max 100) in the prompt.
    • A new grid will be generated while maintaining the total size (960px width).

Extra Credit Features

  • Random RGB Colors:
    • Each hover generates a random RGB color for the grid square.
  • Progressive Darkening:
    • Squares darken progressively on each hover until fully black (or colored).

Contributing

Contributions are welcome! Feel free to fork the repository, create a new branch, and submit a pull request with your improvements.

License

This project is licensed under the MIT License.

Acknowledgements

  • This project is inspired by The Odin Project's curriculum and exercises.
  • Special thanks to [list any contributors or resources you used].

etch-a-sketch's People

Contributors

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