Coder Social home page Coder Social logo

implexrr / 8-bit-sketcher Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.57 MB

A pixelated online etch-a-sketch, created as a part of the Odin Project's Foundation section.

Home Page: https://implexrr.github.io/8-bit-sketcher/

License: MIT License

CSS 28.68% HTML 21.30% JavaScript 50.02%
art-tool css html javascript sketch

8-bit-sketcher's Introduction

8-bit Sketcher

8-bit sketcher is the second javascript project I created for the foundations section of The Odin Project. The code is very rudimentary and written completely in plain HTML/CSS/Javascript. Working demo here.

Please note that I did not add any functionality for mobile devices since that was beyond the scope of the project at the time.

Installation

To create a copy of the project, type the following command into your terminal:

git clone [email protected]:implexrr/8-bit-sketcher.git

Note that the stylesheet and script link paths in this project will need to be changed in order for the CSS/JS files to render properly.

Usage/Features

Give it a try here!

  • Different canvas sizes
    • Adjust the grid size by dragging the grid size slider.
    • Grids can be anywhere from 1x1 to 64x64 pixels.
    • Adjusting the grid size will wipe whatever creation you currently have on the canvas.
    • The default grid size is 16 x 16.
  • Grid lines
    • Toggle grid lines with the grid toggle on the left side.
    • This effect is purely visual and will not affect your current creation.
  • Custom pen colours
    • Easily select your pen colour by clicking on the pen colour wheel.
    • The default pen colour is black.
  • Custom canvas colours
    • You can select the colour of your canvas by clicking on the "background colour" button
    • The default canvas colour is a light beige.
  • Eraser toggle
  • Rainbow mode
    • Don't know what colour you want? Try rainbow mode - every pixel you draw will be filled with a random colour!
  • Shade/Lighten modes
    • Add some shading to your sketch by toggling these modes on/off.

Things I learnt creating the project

  • HTML
    • Input elements
      • Labels
      • Checkboxes
      • Color wheels
    • Sliders
    • Spans vs divs
  • CSS
    • Default styles
    • Filtering
    • Flexbox
    • Box Model
    • Transitions
  • Javascript
    • Event bubbling
    • Event Listeners
  • General Programming
    • Devtools (Chrome, Mozilla)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

8-bit-sketcher's People

Contributors

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