Coder Social home page Coder Social logo

0x07-2d-primitives's Introduction

0x07 : 2D Primitives

Assignment

  1. Choose a shape to draw, and save its reference image as ./assets/<roll-no>-0x07-2d-primitives-refimg.png. Remember to replace <roll-no>. It should reflect in the index.html upon clicking "Show image." Also upload it to the form along with your submission. Here's a reference on how to choose a shape, for anyone interested.
  2. Draw the shape. Use canvas draw functions to create the shape so as to redefine and complete the function Experiment.createGeometry.
  3. Transform. Refactor the function Experiment.getBaseTransform to generate a suitable initial state for the shape. Also see the suggestions for its implementation, useful API and its math.
  4. Stylise. Refactor the function Experiment.getBaseStyles to generate a soothing style. Here's a quick reference on rendering and stylisation using HTML Canvas.
  5. UI. Refactor the function Experiment.handleTransforms to handle the inputs from UI.
  6. Collage. Snapshot a few of your canvases using Download button; and compile a collage using the same. Rename the collage as follows and upload it to the form along with your submission.
    <roll-no>-0x07-2d-primitives-collage.png

Submit

  1. Git URL
  2. Commit ID
  3. Reference Image (of the shape chosen in Step 1)
  4. Teaser (from Collage in Step 6)

Candidate's Remarks

[Statements within braces [] are comments, placeholders and directive. Please remove them and /or replace them with your response.]

[Q: Apart from the given objective, what did you try to/ were able to achieve through this assignment.]

[Q: How difficult/ easy did you find doing this? Reference it with the fact that you are supposed to spend 3-4 hours on this problem. 1 hr in the Lab and rest later.]

[Q: Do you think this exercise may help you solve a real world problem that you may encounter? Please quote an example if so.]

Acknowledgements

[Are there any external resources, friends, colleagues, mentors who have helped you do it. Please acnowledge them.]

Objective

0x07-2d-primitives's People

Contributors

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