Giter VIP home page Giter VIP logo

cse-canvas-1's Introduction

CSE canvas example 1

This code demonstrates how to use the HTML5 canvas in a couple simple ways

Contents

  • README.md - the source of this help text, in markdown format
  • canvas-form.html - an HTML5 canvas connected to an HTML so you can draw circles by typing in the parameters
  • canvas-mouse.html - an HTML5 canvas that tracks your mouse position within itself and logs the (X,Y) to the debug console

Assignment

Create a new file called canvas-painter.html and combine the concepts demonstrated in canvas-form.html and canvas-mouse.html so that the user can "paint" on the canvas by moving their mouse.

Grading

This assignment starts at 10 points when you achieve painting under the mouse cursor. Each extra feature you invent and implement is worth an extra point, up to a maximum of 20 points total for the assignment.

Some ideas for extra features:

  • read keyboard presses or use form buttons to enable changing colors, shapes, and/or sizes (worth 1 point for each parameter you enable changing)
  • restyle the page around the canvas with CSS
  • markup and style an introduction and/or instructions for your app
  • make it so that it only paints while you're holding a mouse button down

References

cse-canvas-1's People

Contributors

themightychris avatar

Stargazers

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

Watchers

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