Code Monkey home page Code Monkey logo

etch_a_sketch's Introduction

Etch 'a' Sketch - The Odin Project

Live Demo 👉 Etch 'a' Sketch

PC View 👇

etch-a-sketch

Overview

This assignment Project: Etch-A-Sketch was set as part of The Odin Project.

This is a browser version of something between sketchpad and Etch-A-Sketch using HTML, JavaScript & CSS. This assigment will allow me to demonstrate:

  • DOM manipulation skills
  • Use of eventListeners
  • Use of Functions
  • Use of Loops
  • Styling Skills

Provided Assets

  • none

Objectives

  1. Create a webpage with a 16x16 grid of square divs.
  2. Create the divs using JavaScript. Don’t try making them by hand with copy and pasting in your HTML file!
  3. Put your grid squares inside another “container” div (which can go directly in your HTML).
  4. There are several different ways to make the divs appear as a grid (versus just one on each line). Feel free to use any or play with each of them: float/clear inline-block flexbox CSS Grid
  5. Set up a “hover” effect so that the grid divs change color when your mouse passes over them, leaving a (pixelated) trail through your grid like a pen would
  6. Add a button to the top of the screen that will send the user a popup asking for the number of squares per side for the new grid. Set the limit for the user input to a maximum of 100.

Extra Credit Instead of just changing the color of a square from black to white (for example), have each pass through with the mouse change it to a completely random RGB value. Then try having each pass just add another 10% of black to it so that only after 10 passes is the square completely black.

Extra

  • I used CSS grid on this
  • The resize button was added at the bottom
  • Extra credit taken!

Languages & Tools

Javascript HTML5 CSS3

Rozla-Dev 18-01-2023

Back to top 👆

etch_a_sketch's People

Contributors

curveservices avatar

Stargazers

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