Code Monkey home page Code Monkey logo

canvas-creations's Introduction

Canvas Creations

Your favourite annual creative challenge for Hacktoberfest is here! We will once again be showcasing the creative talents of our ZTM students, this time using the HTML <canvas> element.

If you've previously contributed to our projects like CSS Art or Animation Nation, this will be a piece of cake, and you can skip ahead to the rules for this particular project. If you've never done one of these before though, don't worry! This is a playground for developers of all skill levels and experience, so keep reading and you'll soon have everything you need to get set up.

All discussions around this event can now be had in our #hacktoberfest-2020 channel on Discord!

Getting Started with Hacktoberfest

Hacktoberfest is a month-long celebration of open source, organised by Digital Ocean. (More details here)

If you've never made a pull request before, or participated in an open-source project, we recommend taking a look at our Start Here Guidelines. This repo has everything you need to learn about open-source, with a step-by-step guide to making your very first PR. Once you've got your feet wet, you're ready to come back and dive into Hacktoberfest fun!

Rules

  • Use HTML, CSS and vanilla JavaScript
  • Use the <canvas> element
  • Please make sure that the code is your own, and not copied from somewhere else
  • That's it!

But what is Canvas?

<canvas> is an HTML element which can be used to draw graphics via scripting (usually JavaScript). This can, for instance, be used to draw 2D shapes, graphs, combine photos, or create simple (and not so simple) animations.

For more information about Canvas, you can read its documentation, and do a tutorial!

How to contribute

  1. First up you need to fork (make a copy) of this repo to your Github account.

  2. Clone (download) your fork to your computer

  3. Set your streams so you can sync your clone with the original repo (get the latest updates)

    • git remote add upstream https://github.com/zero-to-mastery/Canvas-Creations.git
    • git pull upstream master
    • The above 2 commands will synchronize your forked version of the project with the actual repository.
  4. Create a branch

  5. In the Art directory (folder), create a directory named after yourself.

  6. Within this folder you just made, create three files, an HTML file, a CSS file, and a JS file.

  7. Link your CSS and JS files to your HTML file.

  8. Using the <canvas> element, create a work of art! It can be as simple or as complex as you like!

  9. Get a screenshot of your finished work! Try to crop it so that it looks good as a smallish (preferably squarish) image. Save this in your directory, together with your code files. You can also choose to make a gif instead of a static image, if your art is animated. If you don't add a gif/screenshot, the website won't show your work in the thumbnail.

  10. Go to the root include.js. You will see an array of objects, each one represents a work of art that someone has created. Copy an example object and paste it at the end, filling it out with your art information and links:

let cards = [
  //  Add your card in this section
  {
    artName: 'welcome robot',
    pageLink: './Art/joy/robot.html',
    imageLink: './Art/joy/robot.png',
    author: 'Joy',
    githubLink: 'https://github.com/royranger'
  }
];
  1. Pull from the upstream again, like we did in step 3. This is to ensure we still have the latest code.

    • git pull upstream master
  2. Commit and push the code to your fork

  3. Create a pull request to have the changes merged from your fork into the origin

  4. Tweet about making your first Hacktoberfest pull request!

Congratulations! You are now one pull request closer to getting that free t-shirt. Why not have a go at the HTML challenge or the Python Challenge? You can check how many qualifying pull requests you have made at https://hacktoberfest.digitalocean.com/profile . Have Fun and Happy Coding!

Disclaimer

Zero To Mastery receives no commission or incentives for your participating in either this project or entering the Hacktoberfest event.

canvas-creations's People

Contributors

adymoko avatar aszmel avatar ayushi2410 avatar daniancuv avatar dcox2016 avatar edcorona avatar elcarn23 avatar faizhameed avatar felipedferreira avatar gsakshay avatar hetul79 avatar kennithnichol avatar kerlon5 avatar kofosu2289 avatar krishnakanthati avatar michael-255 avatar mtsafe avatar nagahshi avatar nartuom avatar oscaramos avatar pixelatedjelly avatar prashantreneur avatar rabanov avatar royranger avatar russelljeffrey avatar sammkodes96 avatar sdangoy avatar sophiabrandt avatar tranjenny avatar urilivshits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

canvas-creations's Issues

trouble forking from invalid path

Hey all, I just forked the project and cloned it to my windows machine and I'm getting a error because of a colon used in a recently added file name.

error: invalid path 'Art/Angel_Lakra/randomize art.jpg:Zone.Identifier'
fatal: unable to checkout working tree
warning: Clone succeeded, but checkout failed.

Did a little digging and it turns out that ":" along with several other characters are not allowed while naming files in Windows.
Documentation-> https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions

This will probably make it impossible for Windows users to successfully clone the repo..but then again this is my first contribution to anything open source so I could be wrong. @joedag32

Question

Are we able to use third party libraries such as P5.js or Three.js?

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.